@font-face {
    font-family: 'Paperlogy';
    src: url('../fonts/Paperlogy-4Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paperlogy';
    src: url('../fonts/Paperlogy-7Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    font-family: 'Paperlogy', 'Noto Sans KR', sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #151515;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.main-nav {
    position: fixed; 
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0;
    overflow: hidden;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo-link { display: flex; align-items: center; height: 100%; }
.nav-logo { height: 30px; width: auto; flex-shrink: 0; display: block; object-fit: contain; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    height: 100%;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 400;
    color: #151515;
    letter-spacing: 0.15px;
    position: relative;
}

/* Bold-width reservation — prevents layout shift when weight changes */
.nav-item::after {
    content: attr(data-text);
    font-weight: 700;
    font-size: 18px;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    display: block;
}

/* Animated underline */
.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: #151515;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item--active {
    font-weight: 700;
}

.nav-item--active::before {
    transform: scaleX(1);
}

.nav-item:hover {
    font-weight: 700;
}

.nav-item:hover::before {
    transform: scaleX(1);
}

/* Mobile menu — hidden on desktop */
.mobile-nav { display: none; }

/* ============================
   Section Commons
   ============================ */
.section { padding: 140px 0; }

.section-header {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.section-heading-group {
    display: flex;
    align-items: center;
    gap: 28px;
}

.heading-regular {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1.5px;
    line-height: 1;
    white-space: nowrap;
}

.heading-bold {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
    white-space: nowrap;
}

.heading-divider {
    width: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.heading-divider img {
    width: 100%;
    height: 2px;
    object-fit: cover;
}

.section-subtitle {
    font-size: 28px;
    letter-spacing: -1.5px;
    line-height: 1;
}

.section-subtitle strong { font-weight: 700; }

.label-caps {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #a2a2a2;
    text-transform: uppercase;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 120px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 60px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 60px;
}

.hero-subtitle {
    font-size: 28px;
    letter-spacing: -1.5px;
    line-height: 1.7;
}

.hero-subtitle strong { font-weight: 700; }

.philosophy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.body-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: #151515;
}

.body-text strong { font-weight: 700; }

.hero-mascot {
    flex-shrink: 0;
    width: 329px;
    height: 329px;
}

.mandu-character {
    position: relative;
    width: 100%;
    height: 100%;
    animation: mandu-float 3.6s ease-in-out infinite;
}
.mandu-character img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
    opacity: 1;
}

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

@keyframes mandu-float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-14px); }
    100% { transform: translateY(0); }
}

/* ============================
   What Section - App Cards
   ============================ */
.app-cards {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex: 1;
}
.app-card--active {
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-card--active:hover {
    transform: translateY(-12px);
}

.app-card--active:hover .app-icon-img {
    box-shadow: 0px 16px 40px rgba(0, 0, 0, 0.18);
}

.app-icon-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.1);
}

.app-card-label {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.5px;
    text-align: center;
    color: #151515;
}
.app-card--dimmed img {opacity: 0.3;}
.app-card--dimmed p { color: rgba(21, 21, 21, 0.3); }

/* ============================
   Who Section
   ============================ */
.team-photo-wrapper {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

.team-photo { width: 100%; height: auto; display: block; }

/* ============================
   Contact Section
   ============================ */
.contact-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8rem;
}

.sandoong-wrapper {
    position: relative;
    width: 300px;
    flex-shrink: 0;
}

.sandoong {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 40px;
    border-top: 1px solid #e3e3e3;
}

.contact-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px; 
    font-weight: 400; 
    line-height: 1;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #525252;
    transition: color 0.2s;
}

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

.contact-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; 
    height: 48px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.contact-icon-wrap:hover { opacity: 1; }
.contact-icon { object-fit: contain; }
.contact-email-text { font-size: 16px; font-weight: 400; line-height: 1.5; }
.contact-social { display: flex; gap: 16px; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #151515;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger--open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-hamburger--open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-hamburger--open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================
   Footer
   ============================ */
.site-footer {
    background-color: #f9f9f9;
    color: #525252;
    height: 150px;
    display: flex;
    align-items: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-logo { 
    height: 24px; 
    width: auto;
    opacity: 0.3;
}

.footer-copy {
    font-size: 14px;
    font-weight: 400;
    color: #525252;
    line-height: 1;
}


@media (max-width: 768px) {

    /* === Nav === */
    .main-nav {
        padding: 0;
    }

    .nav-inner {
        max-width: none;
    }

    .nav-logo { height: 30px; width: auto; }

    .nav-links { display: none; }

    .nav-hamburger { display: flex; }

    .main-nav--open {
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: visible;
    }

    .mobile-nav {
        position: static;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 30px 30px 30px;
        background: transparent;
    }

    .mobile-nav--open {
        display: flex;
    }

    .mobile-nav-item {
        display: flex;
        align-items: center;
        padding: 10px 24px;
        font-weight: 400;
        color: #151515;
        letter-spacing: 0.15px;
        text-decoration: none;
        width: 100%;
    }

    /* Bold-width reservation for mobile nav */
    .mobile-nav-item::after {
        content: attr(data-text);
        font-weight: 700;
        font-size: 24px;
        height: 0;
        visibility: hidden;
        overflow: hidden;
        user-select: none;
        pointer-events: none;
        display: block;
    }

    .mobile-nav-item--active {
        font-weight: 700;
        border-left: 2px solid #151515;
        padding-left: 22px; /* 24px - 2px border */
    }

    .mobile-nav-item:hover {
        font-weight: 700;
        border-left: 2px solid #151515;
        padding-left: 22px;
    }

    /* === Container === */
    .container { padding: 0 30px; }

    /* === Section Commons === */
    .section { padding: 100px 0; }

    .section-header {
        gap: 24px;
        margin-bottom: 60px;
        align-items: center;
    }

    .section-heading-group {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .heading-regular,
    .heading-bold { font-size: 36px; }

    /* Divider rotates from horizontal to vertical */
    .heading-divider {
        width: 2px;
        height: 52px;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 12px 0;
    }

    .heading-divider img {
        width: 52px;
        height: 2px;
        transform: rotate(90deg);
        object-fit: cover;
    }

    .section-subtitle {
        font-size: 28px;
        text-align: center;
        line-height: 1.7;
    }

    .hero { padding: 100px 0; }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 30px;
    }

    .hero-text {
        gap: 40px;
        padding-top: 0;
        align-items: center;
        text-align: center;
        width: 100%;
        order: 1;
    }

    .hero-text .section-heading-group {
        gap: 0;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 28px;
        line-height: 1.7;
    }

    .philosophy { align-items: center; }

    .body-text {
        font-size: 16px;
        line-height: 1.75;
        text-align: center;
    }

    .hero-mascot {
        order: 2;
        width: 300px;
        height: 300px;
        flex-shrink: 0;
    }

    /* === What — App Cards === */
    .app-cards {
        flex-direction: column;
        align-items: center;
        gap: 53px;
    }

    .app-card {
        flex: none;
        width: 300px;
    }

    .app-icon-img {
        width: 300px;
        height: auto;
        border-radius: 8px;
    }

    /* === Who === */
    .team-photo-wrapper {
        width: 300px;
        height: 243px;
        margin: 0 auto;
        border-radius: 40px;
    }

    .team-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* === Contact === */
    .contact-bottom {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .sandoong-wrapper {
        margin: 0 auto;
    }

    .contact-info {
        width: 100%;
        max-width: none;
        align-items: center;
        padding-top: 41px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .contact-social { gap: 90px; }

    /* === Footer === */
    .site-footer { height: auto; padding: 40px 0; }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        align-items: center;
        text-align: center;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjx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ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress-container {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 40px;
}

.loading-progress-label {
    font-family: 'Paperlogy', 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 32px;
    color: #151515;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.loading-progress-track {
    width: 100%;
    max-width: 500px;
    height: 0.5rem;
    background-color: #e3e3e3;
    border-radius: 0.25rem;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background-color: #151515;
    border-radius: 0.25rem;
    width: 0%;
    transition: width 0.3s ease-in-out;
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}