/*
Theme Name: ABC Bits
Author: The ABC Bits team
Description: A simple landing page theme for ABC Bits - home of fine software products.
Version: 0.1.5
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 1.05rem;
}

a {
    color: #58a6ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation */
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
}

.site-header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e6edf3;
}

.logo span {
    color: #58a6ff;
    animation: hue-cycle 10s linear infinite;
}

@keyframes hue-cycle {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #8b949e;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #e6edf3;
    text-decoration: none;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    max-width: 620px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e6edf3;
    text-wrap: balance;
}

.hero p {
    font-size: 1.25rem;
    color: #8b949e;
    text-wrap: pretty;
}

/* Cards Grid */
.plugins {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem;
}

.bucket + .bucket {
    margin-top: 2rem;
}

.bucket-title {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b949e;
    margin-bottom: 1.25rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e6edf3;
}

.card p {
    color: #8b949e;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card .download {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    background: #21262d;
    border: 1px solid #30363d;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #e6edf3;
    transition: background 0.2s;
}

.card .download:hover {
    background: #30363d;
    text-decoration: none;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.card .learn-more {
    font-size: 0.95rem;
    color: #58a6ff;
}

.card .learn-more:hover {
    text-decoration: underline;
}

.card .download svg {
    width: 16px;
    height: 16px;
}

/* About */
.about {
    max-width: 620px;
    margin: 1.5rem auto 0;
    padding: 2rem 2rem 3rem;
    text-align: center;
}

.about h2 {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b949e;
    margin-bottom: 1rem;
}

.about p {
    color: #c9d1d9;
    font-size: 1.05rem;
}

.about:target {
    border-radius: 12px;
    animation: about-flash 1.2s ease-out;
}

@keyframes about-flash {
    0% { box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.6); }
    100% { box-shadow: 0 0 0 18px rgba(88, 166, 255, 0); }
}

/* Product Page */
.product-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    max-width: 620px;
    margin: 0 auto;
}

.product-hero h1 {
    font-size: 2.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e6edf3;
}

.product-tagline {
    font-size: 1.25rem;
    color: #8b949e;
    margin-bottom: 2rem;
    text-wrap: pretty;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #238636;
    border: 1px solid #2ea043;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2ea043;
    text-decoration: none;
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b949e;
    margin-bottom: 1.5rem;
}

/* Screenshots */
.product-screenshots {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.screenshot {
    margin: 0;
}

.screenshot img {
    width: 100%;
    border: 1px solid #30363d;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.screenshot img:hover {
    border-color: #58a6ff;
}

.screenshot figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #8b949e;
    text-align: center;
}

/* Features */
.product-features {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #8b949e;
    font-size: 0.95rem;
}

/* How It Works */
.product-how-it-works {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.steps-list {
    list-style: none;
    counter-reset: steps;
    max-width: 560px;
    margin: 0 auto;
}

.steps-list li {
    counter-increment: steps;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
    color: #8b949e;
    font-size: 1.5rem;
    line-height: 1.6;
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #58a6ff;
}

.steps-list li strong {
    color: #e6edf3;
}

/* Product CTA */
.product-cta {
    text-align: center;
    max-width: 620px;
    margin: 2rem auto 0;
    padding: 2rem;
}

.product-cta p {
    color: #c9d1d9;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .card-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .product-hero,
    .product-screenshots,
    .product-features,
    .product-how-it-works,
    .product-cta {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-list li {
        font-size: 1.05rem;
        padding-left: 2.25rem;
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    color: #8b949e;
    font-size: 0.95rem;
    border-top: 1px solid #30363d;
    margin-top: 4rem;
}
