@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Serif+KR:wght@300;400;500;700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
    --bg-color: #fff;
    --btn-color: #fdfdfd;
    --btn-bg: #000;
    --primary-text-color: #000;
    --header-link-hover: #000;
    --input-hover-bd-color: #000;
}

html {
    scroll-behavior: smooth;
    font-family: "Noto Sans KR", "Ubuntu", sans-serif;
}

header {
    color: #2c2c2c;
}

header > .collapsible-header {
    display: flex;
    gap: 1rem;
    flex: 1;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease;
}

.animated-collapse {
    transition: width 0.3s ease;
}

.kernest-wordmark {
    font-family: "Ubuntu", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
}

.kernest-wordmark-light {
    color: #ffffff;
    font-size: 1.3rem;
}

.kernest-accent {
    color: #000;
}

.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 5px;
    padding: 5px 10px;
    transition: background-color 0.5s, color 0.5s;
    font-size: 0.95rem;
    color: #2c2c2c;
}

.header-links:hover {
    color: #000;
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-100 {
    opacity: 100 !important;
}

.btn {
    padding: 10px 20px;
    width: max-content;
    border-radius: 6px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.85;
}

/* App cards grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.app-card:hover {
    box-shadow: 0 4px 20px rgba(11, 61, 46, 0.1);
    transform: translateY(-2px);
}

.app-card-planned {
    background-color: #fafafa;
    border-color: #ebebeb;
}

.app-card-series {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.3px;
}

.app-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-top: 2px;
}

.app-card-planned .app-card-title {
    color: #555;
}

.app-card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.badge-coming-soon {
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: #000;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.badge-planned {
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: #e8e8e8;
    color: #777;
    letter-spacing: 0.3px;
}

.app-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    color: #888;
}

footer {
    background-color: #111;
    color: #fff;
}

footer .kernest-wordmark {
    color: #fff;
}

.footer-link {
    color: #888;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
}

#about {
    padding-top: 40px;
    padding-bottom: 100px;
}

#apps {
    padding-top: 100px;
    padding-bottom: 60px;
}

#features {
    padding-top: 60px;
    padding-bottom: 100px;
    font-family: "Noto Serif KR", serif;
}

#contact {
    padding-top: 100px;
    padding-bottom: 100px;
}

@media not all and (min-width: 1024px) {
    .mobile-nav-download {
        display: none !important;
    }
    #lang-toggle {
        border-color: #888 !important;
        color: #aaa !important;
    }
}

.contact-email {
    color: #aaa;
    transition: color 0.2s;
}

.contact-email:hover {
    color: #000;
}

/* Privacy policy body */
.privacy-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.privacy-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-top: 0.5rem;
}

.privacy-body ul {
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.privacy-body li {
    list-style: disc;
}

.privacy-body a {
    color: #000;
    text-decoration: underline;
}

.privacy-body a:hover {
    opacity: 0.75;
}

/* Mobile header menu */
@media not all and (min-width: 1024px) {
    .contact-left {
        margin-bottom: 1.5rem;
    }

    header .collapsible-header {
        position: fixed;
        right: 0px;
        flex-direction: column;
        opacity: 0;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        width: 0vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: end;
        background-color: #040404;
        color: #ffffff;
        overflow-y: auto;
        box-shadow: 3px 0px 3px 2px #9f9f9f;
    }

    .header-links {
        color: #ffffff;
    }

    .header-links:hover {
        color: #cccccc;
    }
}
