/* ============================================================
   QuietWire - index.css
   Page-specific styles for index.html (home page)
   All classes prefixed with "index-"
   ============================================================ */


/* ============================================================
   Hero
   ============================================================ */

.index-hero {
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.index-hero-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.index-hero-logo svg {
    width: 100%;
    height: 100%;
}

.index-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.index-hero-title span {
    color: var(--primary);
}

.index-hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.index-hero-github-note {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.index-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* ============================================================
   Projects section
   ============================================================ */

.index-projects {
    padding: 5rem 1.5rem;
}

.index-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 0.75rem;
    text-align: center;
}

.index-section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.index-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.index-project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
    color: inherit;
}

.index-project-card:hover {
    border-color: var(--primary);
    background: var(--card-bg-hover);
}

.index-project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.index-project-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-dim);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    padding: 10px;
    flex-shrink: 0;
}

.index-project-icon svg {
    width: 100%;
    height: 100%;
}

.index-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.index-badge-dev {
    background: var(--status-progress-bg);
    color: var(--status-progress);
    border: 1px solid var(--status-progress-border);
}

.index-badge-alpha {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.index-badge-stable,
.index-badge-released {
    background: var(--status-done-bg);
    color: var(--status-done);
    border: 1px solid var(--status-done-border);
}

.index-project-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.index-project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.index-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    gap: 0.75rem;
}

.index-stack-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.index-stack-tag {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.index-card-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
    .index-hero {
        padding: 4rem 1.25rem 3.5rem;
    }

    .index-projects {
        padding: 3.5rem 1.25rem;
    }

    .index-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .index-hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .index-hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
