/* =============================================
   koomimi.com - Inflated 3D Decoration Playground
   ============================================= */

/* --- Color Reference ---
   #b8d4e8, #f0c4d8, #c4e8d8, #4a2d7c, #2d7c6a, #7c2d5a
   #ffffff, #8080a0, #2a2040, #6a5090
*/

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    color: #2a2040;
    background: #b8d4e8;
    overflow-x: hidden;
}

/* --- Typography --- */
h2.section-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 6vw, 80px);
    color: #2a2040;
    margin-bottom: 60px;
    text-align: center;
}

h2.section-title-light {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(74, 45, 124, 0.3);
}

.tool-label {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #6a5090;
    display: block;
    text-align: center;
    margin-top: 12px;
}

/* --- HERO SECTION --- */
.section-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gradient-mesh-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, #b8d4e8 0%, transparent 70%),
        radial-gradient(ellipse 70% 80% at 80% 20%, #f0c4d8 0%, transparent 65%),
        radial-gradient(ellipse 90% 70% at 50% 80%, #c4e8d8 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 70% 60%, #b8d4e8 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 30% 70%, #f0c4d8 0%, transparent 50%),
        linear-gradient(135deg, #c4e8d8 0%, #b8d4e8 50%, #f0c4d8 100%);
    z-index: 0;
}

/* Aurora accent lights */
.aurora-accent {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.aurora-1 {
    width: 35px;
    height: 35px;
    background: radial-gradient(circle, #4a2d7c 0%, transparent 70%);
    top: 15%;
    right: 20%;
    animation: orbit1 10s linear infinite;
}

.aurora-2 {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #2d7c6a 0%, transparent 70%);
    top: 60%;
    left: 15%;
    animation: orbit2 8s linear infinite;
}

.aurora-3 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #f0c4d8 0%, transparent 70%);
    bottom: 20%;
    right: 30%;
    animation: orbit3 12s linear infinite;
}

@keyframes orbit1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(0, -40px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes orbit2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20px, 15px); }
    50% { transform: translate(40px, 0); }
    75% { transform: translate(20px, -15px); }
    100% { transform: translate(0, 0); }
}

@keyframes orbit3 {
    0% { transform: translate(0, 0); filter: hue-rotate(0deg); }
    50% { transform: translate(-25px, 20px); filter: hue-rotate(180deg); }
    100% { transform: translate(0, 0); filter: hue-rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* --- Inflated Wordmark --- */
.wordmark {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 24px);
    margin-bottom: 24px;
}

.char {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(60px, 14vw, 160px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(80px, 16vw, 180px);
    height: clamp(80px, 16vw, 180px);
    border-radius: 40%;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
    cursor: default;
    line-height: 1;
}

.char-1 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #b8d4e8 40%, #8ab8d4 100%);
    color: #2a2040;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.char-2 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #f0c4d8 40%, #d8a0bc 100%);
    color: #2a2040;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.char-3 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #c4e8d8 40%, #98d4bc 100%);
    color: #2a2040;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.char.inflated {
    opacity: 1;
    transform: scale(1);
}

.char:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(128,128,160,0.3), 0 20px 50px rgba(128,128,160,0.2);
}

.domain-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 2vw, 22px);
    color: #6a5090;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.domain-label.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- TOOLS SECTION --- */
.section-tools {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 30% 40%, #c4e8d8 0%, transparent 65%),
        radial-gradient(ellipse 70% 70% at 70% 30%, #f0c4d8 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 70%, #b8d4e8 0%, transparent 55%),
        linear-gradient(160deg, #c4e8d8 0%, #f0c4d8 50%, #b8d4e8 100%);
    padding: clamp(80px, 10vw, 140px) clamp(24px, 5vw, 80px) clamp(60px, 8vw, 120px);
    overflow: hidden;
}

.diagonal-positive {
    clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
    margin-top: -40px;
}

.diagonal-negative {
    clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
    margin-top: -40px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tools-scatter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(30px, 5vw, 60px);
    padding: 20px 0;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-item.visible {
    opacity: 1;
    transform: scale(1) rotate(var(--rotation, 0deg));
}

.tool-item:nth-child(1) { --rotation: -3deg; }
.tool-item:nth-child(2) { --rotation: 4deg; }
.tool-item:nth-child(3) { --rotation: -2deg; }
.tool-item:nth-child(4) { --rotation: 5deg; }
.tool-item:nth-child(5) { --rotation: -4deg; }

.tool-body {
    width: clamp(90px, 14vw, 140px);
    height: clamp(90px, 14vw, 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- Scissors (가위) --- */
.scissors {
    position: relative;
    width: 80px;
    height: 80px;
}

.scissors-blade {
    position: absolute;
    width: 45px;
    height: 14px;
    border-radius: 7px;
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #b8d4e8 60%, #8ab0cc 100%);
    box-shadow: 0 3px 8px rgba(128,128,160,0.25), 0 8px 20px rgba(128,128,160,0.12);
    top: 28px;
}

.scissors-blade-left {
    left: 5px;
    transform: rotate(-20deg);
    transform-origin: right center;
}

.scissors-blade-right {
    left: 5px;
    transform: rotate(20deg);
    transform-origin: right center;
}

.scissors-pivot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,0.7) 0%, #d0d0e0 60%, #a0a0b8 100%);
    box-shadow: 0 2px 5px rgba(128,128,160,0.3);
    top: 30px;
    left: 42px;
    z-index: 2;
}

.scissors-handle {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 5px solid;
    background: transparent;
    box-shadow: 0 3px 6px rgba(128,128,160,0.2);
}

.scissors-handle-left {
    border-color: #f0c4d8;
    bottom: 8px;
    right: 8px;
    transform: rotate(10deg);
}

.scissors-handle-right {
    border-color: #c4e8d8;
    bottom: 8px;
    right: 30px;
    transform: rotate(-10deg);
}

/* --- Tape (테이프) --- */
.tape {
    position: relative;
    width: 70px;
    height: 70px;
}

.tape-outer {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.5) 0%, #f0c4d8 50%, #d8a0bc 100%);
    box-shadow: 0 4px 10px rgba(128,128,160,0.25), 0 12px 30px rgba(128,128,160,0.12);
    position: absolute;
    top: 0;
    left: 0;
}

.tape-inner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 40% 35%, #c4e8d8 0%, #f0c4d8 50%, #b8d4e8 100%);
    position: absolute;
    top: 21px;
    left: 21px;
    z-index: 1;
    box-shadow: inset 0 2px 6px rgba(128,128,160,0.2);
}

.tape-strip {
    position: absolute;
    width: 30px;
    height: 8px;
    background: rgba(240, 196, 216, 0.6);
    border-radius: 2px;
    top: 31px;
    right: -12px;
    transform: rotate(-5deg);
    z-index: 2;
}

/* --- Sticker (스티커) --- */
.sticker {
    position: relative;
    width: 65px;
    height: 65px;
}

.sticker-face {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #c4e8d8 50%, #98d4bc 100%);
    box-shadow: 0 4px 10px rgba(128,128,160,0.25), 0 12px 30px rgba(128,128,160,0.12);
    position: absolute;
    top: 0;
    left: 0;
}

.sticker-peel {
    position: absolute;
    width: 22px;
    height: 22px;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, transparent 50%, #f0c4d8 50%);
    border-radius: 0 0 18px 0;
    box-shadow: -2px -2px 4px rgba(128,128,160,0.15);
    z-index: 1;
}

/* --- Brush (붓) --- */
.brush {
    position: relative;
    width: 30px;
    height: 80px;
}

.brush-bristles {
    width: 24px;
    height: 22px;
    border-radius: 6px 6px 12px 12px;
    background: radial-gradient(ellipse at 40% 20%, rgba(255,255,255,0.5) 0%, #f0c4d8 50%, #d8a0bc 100%);
    box-shadow: 0 4px 8px rgba(128,128,160,0.2);
    position: absolute;
    bottom: 0;
    left: 3px;
}

.brush-ferrule {
    width: 26px;
    height: 10px;
    border-radius: 3px;
    background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,0.6) 0%, #d0d0e0 60%, #a0a0b8 100%);
    box-shadow: 0 2px 4px rgba(128,128,160,0.2);
    position: absolute;
    bottom: 20px;
    left: 2px;
}

.brush-handle {
    width: 16px;
    height: 48px;
    border-radius: 8px 8px 5px 5px;
    background: radial-gradient(ellipse at 35% 25%, rgba(255,255,255,0.5) 0%, #b8d4e8 50%, #8ab0cc 100%);
    box-shadow: 0 3px 8px rgba(128,128,160,0.2);
    position: absolute;
    top: 0;
    left: 7px;
}

/* --- Glitter (글리터) --- */
.glitter {
    position: relative;
    width: 50px;
    height: 70px;
}

.glitter-jar {
    width: 44px;
    height: 50px;
    border-radius: 10px 10px 14px 14px;
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.5) 0%, #4a2d7c 60%, #3a1d6c 100%);
    box-shadow: 0 4px 10px rgba(128,128,160,0.25), 0 12px 30px rgba(128,128,160,0.12);
    position: absolute;
    bottom: 0;
    left: 3px;
}

.glitter-lid {
    width: 50px;
    height: 14px;
    border-radius: 7px;
    background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,0.6) 0%, #d0d0e0 60%, #a0a0b8 100%);
    box-shadow: 0 2px 4px rgba(128,128,160,0.2);
    position: absolute;
    bottom: 48px;
    left: 0;
}

.glitter-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}

.glitter-sparkle-1 {
    background: radial-gradient(circle, #f0c4d8 0%, transparent 70%);
    top: 2px;
    left: 10px;
    animation-delay: 0s;
}

.glitter-sparkle-2 {
    background: radial-gradient(circle, #c4e8d8 0%, transparent 70%);
    top: -2px;
    left: 28px;
    animation-delay: 0.6s;
}

.glitter-sparkle-3 {
    background: radial-gradient(circle, #b8d4e8 0%, transparent 70%);
    top: 5px;
    right: 2px;
    animation-delay: 1.2s;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.6; }
    50% { transform: scale(1.5) translateY(-6px); opacity: 1; }
}

/* --- INSPIRATION SECTION --- */
.section-inspiration {
    position: relative;
    padding: clamp(100px, 12vw, 160px) clamp(24px, 5vw, 80px) clamp(80px, 10vw, 140px);
    overflow: hidden;
    min-height: 80vh;
}

.aurora-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 20% 40%, #4a2d7c 0%, transparent 60%),
        radial-gradient(ellipse 80% 70% at 80% 30%, #2d7c6a 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 70%, #7c2d5a 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 60% 50%, #4a2d7c 0%, transparent 65%),
        linear-gradient(135deg, #4a2d7c 0%, #2d7c6a 50%, #7c2d5a 100%);
    z-index: 0;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(20px, 3vw, 40px);
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.inspiration-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: clamp(24px, 3vw, 40px);
    transition: transform 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.card-1 { animation: cardFloat1 8s ease-in-out infinite; }
.card-2 { animation: cardFloat2 10s ease-in-out infinite; }
.card-3 { animation: cardFloat3 7s ease-in-out infinite; }
.card-4 { animation: cardFloat4 12s ease-in-out infinite; }

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes cardFloat4 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.inspiration-card:hover {
    transform: scale(1.05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(74, 45, 124, 0.3);
    animation-play-state: paused;
}

.card-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 2.5vw, 24px);
    color: #ffffff;
    margin-bottom: 10px;
}

.card-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 1.3vw, 16px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* --- CLOSING SECTION --- */
.section-closing {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 80px);
}

.gradient-mesh-closing {
    background:
        radial-gradient(ellipse 70% 60% at 30% 50%, #c4e8d8 0%, transparent 65%),
        radial-gradient(ellipse 80% 70% at 70% 40%, #b8d4e8 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 60%, #f0c4d8 0%, transparent 55%),
        linear-gradient(160deg, #b8d4e8 0%, #c4e8d8 50%, #f0c4d8 100%);
}

.aurora-closing-1 {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #4a2d7c 0%, transparent 70%);
    top: 25%;
    left: 20%;
    animation: orbit1 9s linear infinite;
}

.aurora-closing-2 {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #2d7c6a 0%, transparent 70%);
    bottom: 30%;
    right: 15%;
    animation: orbit2 11s linear infinite;
}

.aurora-closing-3 {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #f0c4d8 0%, transparent 70%);
    top: 40%;
    right: 25%;
    animation: orbit3 7s linear infinite;
}

.closing-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.closing-statement {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 1vw, 12px);
}

.closing-char {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(40px, 10vw, 120px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(56px, 12vw, 130px);
    height: clamp(56px, 12vw, 130px);
    border-radius: 35%;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
    cursor: default;
    line-height: 1;
}

.closing-char.closing-space {
    width: clamp(20px, 4vw, 40px);
    height: auto;
    background: none !important;
    box-shadow: none !important;
}

.closing-char-1 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #b8d4e8 40%, #8ab8d4 100%);
    color: #2a2040;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.closing-char-2 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #f0c4d8 40%, #d8a0bc 100%);
    color: #2a2040;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.closing-char-3 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #c4e8d8 40%, #98d4bc 100%);
    color: #2a2040;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.closing-char-5 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #4a2d7c 40%, #3a1d6c 100%);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.closing-char-6 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #2d7c6a 40%, #1d6c5a 100%);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.closing-char-7 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #f0c4d8 40%, #d8a0bc 100%);
    color: #2a2040;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.closing-char-8 {
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.6) 0%, #b8d4e8 40%, #8ab8d4 100%);
    color: #2a2040;
    box-shadow: 0 4px 8px rgba(128,128,160,0.25), 0 15px 40px rgba(128,128,160,0.15);
}

.closing-char.inflated {
    opacity: 1;
    transform: scale(1);
}

.closing-char:hover {
    transform: scale(1.08);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .tools-scatter {
        gap: 24px;
    }

    .tool-body {
        width: 90px;
        height: 90px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .diagonal-positive {
        clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
        margin-top: -20px;
    }

    .diagonal-negative {
        clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 calc(100% - 20px));
        margin-top: -20px;
    }

    .closing-statement {
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .wordmark {
        gap: 6px;
    }

    .char {
        width: 80px;
        height: 80px;
        font-size: 50px;
        border-radius: 30%;
    }

    .closing-char {
        width: 50px;
        height: 50px;
        font-size: 34px;
        border-radius: 30%;
    }
}
