/* Landing page styles */

/* Landing container */
.container.landing {
    padding: 2rem 1rem;
}

/* Header styling for landing page */
.landing .header h1 {
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header .actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Hero section layout */
.landing-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

/* Hero copy (text content) */
.hero-copy {
    flex: 1 1 0;
    min-width: 260px;
}

.hero-copy h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
}

.hero-copy p.lead {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Feature list */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: "•";
    margin-right: 0.5rem;
    color: var(--text-gold);
}

/* Sprite rail container */
.sprite-rail-container {
    position: relative;
    margin-top: 1.6rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-recessed);
}

/* LCD Dot-Matrix Grid Overlay (Static) */
.sprite-rail-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 0);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

.sprite-rail {
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.05),
            rgba(0, 0, 0, 0.1));
    padding: 0.5rem 0.75rem;
}

/* Sprite track (scrolling container) */
.sprite-track {
    display: flex;
    gap: 1rem;
    align-items: center;
    white-space: nowrap;
}

/* Individual sprites in the rail */
.sprite-track img,
.sprite-track .sprite {
    width: 80px;
    height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
    position: relative;
    z-index: 1;
}

/* Codeberg link styling */
.codeberg-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.codeberg-link img {
    height: 1.15em;
}

.codeberg-link span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Open source notice */
.open-source-notice {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Hero CTA buttons row */
.hero-cta-row {
    display: flex;
    gap: 0.75rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

.hero-cta-row .btn {
    min-width: 140px;
    text-align: center;
}

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--input-border);
    box-shadow: var(--shadow-recessed);
    min-width: 100px;
}

.stat-number {
    font-family: "Silkscreen", monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-gold);
    text-shadow: var(--shadow-text);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Feature Showcase Section */
.feature-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    /* Deep Beveled Base with industrial grain */
    box-shadow:
        var(--shadow-card-raised),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    background-image:
        radial-gradient(circle at 1px 1px,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 0),
        linear-gradient(135deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.02) 50%, rgba(0, 0, 0, 0.02) 75%, transparent 75%, transparent);
    background-size: 3px 3px, 4px 4px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Plastic gloss reflection */
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.02) 80%,
            transparent);
    z-index: 1;
    pointer-events: none;
    border-radius: 11px 11px 0 0;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow:
        var(--shadow-card-hover),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: var(--accent-orange);
}

.feature-icon {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-gold);
    text-shadow: var(--shadow-text);
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-gold);
    position: relative;
    z-index: 2;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    z-index: 2;
}