:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #000000;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #ffffff;
    --border-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    line-height: 1.5;
    -webkit-font-smoothing: none; /* Sharper text for retro feel */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
}

/* Header */
header {
    padding: 20px 0; /* Reduced from 40px */
    border-bottom: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-container {
    margin-bottom: 15px; /* Reduced from 30px */
    padding: 10px; /* Reduced from 20px */
    border: 1px dashed var(--border-color);
}

.logo-img {
    max-width: 150px; /* Reduced after crop */
    width: 100%;
    height: auto;
    filter: contrast(120%);
    image-rendering: auto;
}

.brand-name {
    display: block;
    font-size: 1.5rem; /* Reduced from 2rem */
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 5px; /* Reduced from 15px */
    line-height: 1;
}

.brand-cursor {
    display: inline-block;
    width: 10px;
    height: 1.5rem;
    background-color: var(--text-color);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    margin-bottom: 2px;
}

nav {
    margin-top: 20px;
    display: flex;
    gap: 1px; /* Gap for borders */
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

nav a {
    background: var(--bg-color);
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.0s; /* Instant transition for CLI feel */
}

nav a:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 20px;
}

.badges {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

[data-theme="dark"] .badges img {
    filter: invert(1);
}

.ascii-box {
    border: 1px solid var(--border-color);
    padding: 20px;
    display: inline-block;
    text-align: left;
    margin: 20px auto;
}

.prompt {
    display: block;
    margin-bottom: 10px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background: var(--text-color);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Install command */
.install-cmd {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 30px;
    display: inline-block;
    cursor: pointer;
    border: 1px solid var(--text-color);
}

.install-cmd:active {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-bottom: 1px dashed var(--border-color);
}

.feature {
    padding: 40px;
    border-right: 1px dashed var(--border-color);
}

.feature:last-child {
    border-right: none;
}

.feature h3 {
    text-transform: uppercase;
    margin-bottom: 15px;
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 10px;
    color: var(--text-color);
    transition: transform 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 600px) {
    .container {
        padding: 0 15px; /* Reduce container padding */
    }

    /* Clear space for fixed toggle button */
    header {
        padding-top: 60px; 
    }

    h1 {
        font-size: 1.8rem; /* Smaller title */
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px; /* Smaller gap */
    }

    nav a {
        padding: 8px 12px; /* Compact links */
        font-size: 0.9rem;
        flex: 0 1 auto; /* Don't force full width, let them flow */
        border: 1px solid transparent; /* Prevent layout shift on hover if any */
    }

    .badges {
        flex-wrap: wrap; /* Stack badges if needed */
        gap: 5px;
    }

    .ascii-box {
        width: 100%;
        overflow-x: auto; /* Allow scrolling for long lines */
        font-size: 0.8rem; /* Smaller terminal text */
        padding: 15px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        background: var(--bg-color); /* Add bg to prevent transparent overlap */
        border: 1px solid var(--border-color); /* Add border for visibility */
        border-radius: 50%; /* Circle shape */
    }
}
