:root {
    /* Colors */
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    /* Indigo 700 */
    --primary-light: #6366f1;
    /* Indigo 500 */
    --text-main: #1f2937;
    /* Gray 800 */
    --text-muted: #4b5563;
    /* Gray 600 */
    --bg-color: #f9fafb;
    /* Gray 50 */
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    /* Gray 200 */
    --accent-terminal: #1e293b;
    /* Slate 800 */

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;

    /* Spacing */
    --container-width: 1100px;
    --header-height: 70px;

    /* Retro Banner Colors */
    --retro-teal: #008080;
    --retro-yellow: #ffff00;
    --retro-shadow: 4px 4px 0px #000000;
}

/* Retro Banner Styles */
.retro-banner-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 9999;
    font-family: var(--font-mono);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.retro-box {
    background-color: var(--retro-teal);
    border: 3px solid #000;
    padding: 20px;
    position: relative;
    box-shadow: var(--retro-shadow);
    color: #000;
}

.retro-box::before {
    content: "";
    /* Inner border effect */
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.retro-header-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 2px 10px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retro-box p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
}

.retro-btn {
    background: var(--retro-yellow);
    border: 2px solid #000;
    padding: 8px 16px;
    font-weight: bold;
    font-family: var(--font-mono);
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
    transition: all 0.1s;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.retro-btn:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Download Count Banner */
.download-banner {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.download-banner .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    margin: 0 4px;
}


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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

.search-form input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.2s;
}

.search-form {
    position: relative;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background 0.1s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-color);
}

.search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
}

.search-result-excerpt {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.no-results {
    padding: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: white;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-main);
    font-family: var(--font-sans);
    /* Ensure specific font style */
}

/* Simulate the "command line" look in the heading slightly */
.hero h1::before {
    content: "> ";
    color: var(--primary-light);
    font-family: var(--font-mono);
    font-weight: 400;
    opacity: 0.6;
}


.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 480px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.3);
}

.version-info {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Monitor Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.monitor {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.screen {
    background: var(--accent-terminal);
    border-radius: 12px 12px 0 0;
    border: 8px solid #334155;
    border-bottom: none;
    height: 320px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.code-window {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.title-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.code-content {
    color: #e2e8f0;
    line-height: 1.8;
}

.comment {
    color: #64748b;
}

.prompt {
    color: #10b981;
    margin-right: 8px;
}

.output {
    color: #94a3b8;
    display: block;
    margin-bottom: 10px;
}

.stand {
    height: 40px;
    width: 120px;
    background: #cbd5e1;
    margin: 0 auto;
}

.base {
    height: 10px;
    width: 200px;
    background: #94a3b8;
    margin: 0 auto;
    border-radius: 4px;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-color);
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
    position: relative;
    padding-left: 20px;
}

.feature-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Companies */
.companies {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.companies p {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--accent-terminal);
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin-bottom: 40px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid #334155;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}

/* Content Pages */
.content-page {
    padding: 60px 0;
    min-height: 60vh;
    background: white;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.content-page h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.content-page p {
    margin-bottom: 20px;
    color: var(--title-muted);
    font-size: 1.05rem;
    max-width: 800px;
}

.content-page ul,
.content-page ol {
    margin-bottom: 20px;
    margin-left: 20px;
    max-width: 800px;
}

.content-page li {
    margin-bottom: 10px;
}

.content-page pre {
    background: var(--accent-terminal);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.content-page a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-page a:hover {
    text-decoration: none;
}

.sidebar-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.sidebar h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.sidebar ul {
    margin-left: 0;
}

.sidebar li a {
    display: block;
    padding: 5px 0;
    color: var(--text-muted);
    text-decoration: none;
}

.sidebar li a:hover,
.sidebar li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .logo-icon,
    .search-form {
        display: none;
        /* Simplify header for now */
    }

    nav ul {
        gap: 15px;
    }

    .hero-lead {
        margin: 0 auto 35px;
    }
}