:root {
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --surface-hover: #262626;
    --primary-color: #64B5F6;
    --primary-glow: rgba(100, 181, 246, 0.3);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --grid-color: rgba(255, 255, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.header-text {
    text-align: center;
    margin-bottom: 40px;
}

.header-text h1, .header-text h2 {
    margin-bottom: 10px;
}

.header-text p {
    color: var(--text-muted);
}

/* Download Engine Card */
.download-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 80px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.control-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.control-group label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

select, input[type="text"] {
    background: #121212;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

select:focus, input[type="text"]:focus {
    border-color: var(--primary-color);
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.2s;
}

.primary-btn {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-color);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    font-size: 14px;
}

.secondary-btn:hover {
    background: rgba(100, 181, 246, 0.1);
}

/* Plugin Section */
.plugin-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.plugin-filters input {
    flex: 1;
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Plugin Card */
.plugin-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.plugin-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.plugin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.plugin-title {
    font-size: 18px;
    font-weight: bold;
}

.plugin-version {
    font-size: 12px;
    background: #333;
    padding: 3px 8px;
    border-radius: 12px;
    color: #ccc;
}

.plugin-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.plugin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.plugin-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(100, 181, 246, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(100, 181, 246, 0.2);
}

.compat-badge {
    font-size: 11px;
    color: #ffb74d; /* Warning/Orange color */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.plugin-author{
    font-size: 11px;
    color: var(--text-muted);
    padding-bottom: 10px;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 120px;
}

/* Reverses the flex direction for alternating rows */
.feature-row.reverse {
    flex-direction: row-reverse;
}

/* --- Feature Image Styling --- */
.feature-image {
    flex: 1;
    position: relative;
    border-radius: 12px;
    z-index: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: translateY(-5px);
}

/* The ambient glow behind the images */
.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

/* --- Feature Text Styling --- */
.feature-text {
    flex: 1;
}

.feature-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 20px;
    margin-bottom: 15px;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .feature-text {
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }
}