[x-cloak] {
    display: none !important;
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: #E0E5EC;
    color: #4A5568;
    font-family: 'NanumSquareRound', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

h1,
h2,
h3,
h4,
.font-title {
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
    grid-auto-flow: dense;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(180px, auto);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(130px, auto);
        gap: 0.5rem;
        padding: 0.25rem;
    }
}

.col-span-2 {
    grid-column: span 2;
}

.col-span-4 {
    grid-column: span 4;
}

.row-span-2 {
    grid-row: span 2;
}

.clay-card {
    background-color: #E0E5EC;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(163, 177, 198, 0.4), 0 -2px 8px rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 100%;
    overflow: hidden;
}

.clay-card--overflow-visible {
    overflow: visible !important;
}

@media (min-width: 768px) {
    .clay-card {
        box-shadow: 8px 8px 16px rgb(163, 177, 198, 0.5), -8px -8px 16px rgba(255, 255, 255, 0.6);
    }
}

@media (hover: hover) {
    .clay-card:hover {
        transform: translateY(-4px) scale(1.005);
        box-shadow: 12px 12px 20px rgba(163, 177, 198, 0.6), -12px -12px 20px rgba(255, 255, 255, 0.7);
        z-index: 10;
    }
}

.shadow-clay-inner {
    box-shadow: inset 4px 4px 8px 0 rgba(163, 177, 198, 0.6), inset -4px -4px 8px 0 rgba(255, 255, 255, 0.8);
}

.float-icon {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 2.2rem;
    }
}

.nav-logo-group:hover .logo-text {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.3));
}

.logo-icon-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo-group:hover .logo-icon-box {
    transform: scale(1.15) rotate(10deg);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}
