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

:root {
    /* Light theme palette (overriding previous dark values) */
    --bg-dark: #ffffff; /* used as body background */
    --bg-darker: #f7fafc; /* used for code blocks / surfaces */
    --text-primary: #111827; /* gray-900 */
    --text-secondary: #4b5563; /* gray-600 */
    --text-muted: #6b7280; /* gray-500/600 */
    --border-color: #e5e7eb; /* gray-200 */
    --border-subtle: #e5e7eb;

    /* Accent colors */
    --accent-purple: #7c3aed; /* slightly brighter */
    --accent-blue: #2563eb; /* blue-600 */
    --accent-green: #16a34a; /* green-600 */

    /* Fonts remain */
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    font-size: 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography - Monospace headers like GitHub Universe */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Header Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95); /* light, was rgba(13,17,23,.95) */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo-ai {
    color: var(--accent-purple);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    text-transform: lowercase;
}

/* Links hover state on light */
.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

/* Hero sections */
.hero-home {
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero {
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1,
.hero-home h1 {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons - Minimal style */
.btn {
    font-family: var(--font-mono);
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    text-transform: lowercase;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(240, 246, 252, 0.05);
}

/* Content sections */
.content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.content h2 {
    font-family: var(--font-mono);
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.content ul,
.content ol {
    margin: 1.5rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content li {
    margin-bottom: 0.75rem;
}

.content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

/* Content links */
.content a:hover {
    border-bottom-color: var(--accent-blue);
}

.content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Features section - No cards, clean list style */
.features {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features h2 {
    font-family: var(--font-mono);
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.feature {
    padding: 0;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
    transition: border-color 0.3s;
}

.feature:hover {
    border-left-color: var(--accent-purple);
}

.feature h3 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Product sections - No cards */
.featured-products {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.featured-products h2 {
    font-family: var(--font-mono);
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.featured-products > .container > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.125rem;
}

/* Cards / product visuals */
.product-card,
.card {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.product-card:last-child,
.card:last-child {
    border-bottom: none;
}

.product-card:hover,
.card:hover {
    padding-left: 1rem;
}

.product-image,
.card-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.product-info h3,
.card-content h2 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.card-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.card-content h2 a:hover {
    color: var(--accent-blue);
}

.product-info p,
.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-info .btn,
.card-content .btn {
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background: #ffffff; /* was dark */
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: lowercase;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Listing sections */
.listing {
    padding: 4rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1,
    .hero-home h1 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.125rem;
    }

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

    .features,
    .featured-products {
        padding: 4rem 0;
    }
}

/* Code styling for inline and blocks */
code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(15, 23, 42, 0.06); /* subtle light */
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    color: var(--text-primary);
}

pre {
    font-family: var(--font-mono);
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    padding: 0;
}
