/* --- THE NEW FULLY-RESPONSIVE ARCHITECTURE --- */
.home-main {
    width: 100%;
    overflow-x: hidden;
    padding-top: 5rem;
}
.home-section {
    padding: 3.5rem 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
@media (min-width: 768px) {
    .home-section { padding: 6rem 2rem; }
    .md-flex-start { justify-content: flex-start !important; }
}

.home-hero-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}
@media (min-width: 992px) {
    .home-hero-wrap {
        flex-direction: row;
        text-align: right;
        gap: 4rem;
    }
    .home-hero-content, .home-hero-image { flex: 1; }
}

.home-hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    color: var(--text-main);
}
@media (min-width: 768px) { .home-hero-title { font-size: 3.2rem; } }

.home-hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.home-btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
@media (min-width: 768px) {
    .home-btn-group {
        flex-direction: row;
        width: auto;
    }
}

.home-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: 18px;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
@media (min-width: 768px) { .home-btn { width: auto; padding: 1.1rem 2rem; } }

.home-btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.4);
}
.home-btn-primary:active { transform: scale(0.96); }

.home-btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
}
.home-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79,70,229,0.05);
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 600px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .home-grid { grid-template-columns: repeat(4, 1fr); } }

.home-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.home-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(79, 70, 229, 0.3);
}

.home-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.home-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}
.home-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.home-repo-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border);
    gap: 1.5rem;
    box-shadow: var(--shadow-subtle);
}
@media (min-width: 768px) {
    .home-repo-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2rem;
    }
}
.home-repo-card:hover { border-color: var(--primary); }

.home-repo-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.home-repo-info i {
    font-size: 1.8rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: var(--bg-alt);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-repo-info h4 { font-size: 1.1rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.3rem;}
.home-repo-info p { font-size: 0.85rem; color: var(--text-muted); }

.home-repo-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-alt);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.home-repo-code { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 1.1rem; color: var(--primary); }

.home-sec-title {
    text-align: center;
    margin-bottom: 3rem;
}
.home-sec-title h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}
@media (min-width: 768px) { .home-sec-title h2 { font-size: 2.8rem; } }
.home-sec-title p { color: var(--text-muted); font-size: 1.05rem; }
