@font-face {
    font-family: "Inter";
    src: url("./assets/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html,
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Inter", sans-serif;
    text-align: center;
    color: white;
    background-color: #151515;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.logo-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #caf2b3;
    margin: 0;
    padding: 1rem;
    white-space: pre;
    text-align: center;
}

.description {
    font-size: 1.2rem;
    margin-top: 2rem;
    color: #cccccc;
    line-height: 1.5;
}

.screenshots {
    margin-top: 5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    overflow-x: auto;
    max-width: 1600px;
}

.screenshots > * {
    transition: transform 1s ease, opacity 0.3s ease;
}

.terminal {
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    text-align: start;
    background: #000;
    color: #fff;
    border-radius: 6px;
    border: 1px solid #333;
    font-size: clamp(8px, 2.5vw, 12px);
    line-height: 1.2;
    white-space: pre;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0.5rem;
    max-width: 100%;
    width: fit-content;
    min-height: fit-content;
    font-variant-ligatures: none;
    font-feature-settings: normal;
    tab-size: 1;
}

.terminal * {
    white-space: pre;
}

.features {
    margin-top: 5rem;
}

.features h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.feature-list li {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    border: 1px solid #333333;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444444;
}

.installation {
    margin-top: 5rem;
}

.installation h2 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.install-steps {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.install-method,
.usage {
    text-align: left;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid #333333;
}

.install-method h3,
.usage h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
}

.install-command {
    display: block;
    background: #000000;
    color: #caf2b3;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-family: "Monaco", "Menlo", "Consolas", monospace;
    border: 1px solid #333333;
    margin: 0.5rem 0;
    user-select: all;
    cursor: pointer;
    transition: background 0.2s ease;
}

.install-command:hover {
    background: #111111;
}

.usage-note {
    font-size: 0.85rem;
    color: #888888;
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 5rem;
}

.links > a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #444444;
    border-radius: 0.5rem;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.links > a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #666666;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding: 2rem;
}

#footer-logo {
    width: 2rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .screenshots {
        gap: 0.75rem;
    }

    .terminal {
        padding: 0.4rem;
    }
}

@media (max-width: 768px) {
    .screenshots {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 3rem;
        width: 100%;
    }

    .terminal {
        width: auto;
        max-width: calc(100vw - 2rem);
        overflow-x: auto;
        overflow-y: hidden;
        white-space: pre !important;
        word-break: keep-all;
        word-wrap: normal;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #333 #000;
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
        font-size: clamp(9px, 3.2vw, 12px);
    }

    .terminal * {
        white-space: pre !important;
        word-break: keep-all;
        word-wrap: normal;
    }

    .terminal pre {
        margin: 0;
        white-space: pre !important;
        overflow: visible;
    }

    .terminal::-webkit-scrollbar {
        height: 6px;
    }

    .terminal::-webkit-scrollbar-track {
        background: #000;
    }

    .terminal::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 3px;
    }

    .features {
        margin-top: 3rem;
    }

    .installation {
        margin-top: 3rem;
    }

    .links {
        margin-top: 3rem;
    }

    .feature-list {
        max-width: 90%;
    }

    .install-steps {
        max-width: 90%;
    }
}

@media (max-width: 480px) {

    .logo-text {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .description {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .terminal {
        border-radius: 4px;
    }

    .feature-list {
        max-width: 100%;
        gap: 0.75rem;
    }

    .install-steps {
        max-width: 100%;
        gap: 0.75rem;
    }

    .install-method, .usage {
        padding: 1rem;
    }

    .links {
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }

    .screenshot-gallery img:hover {
        transform: none;
    }

    .install-command {
        transition: none;
    }
}
