/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: #2d1b4e;
    background: #f0e8ff;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.input-label, .rating-display {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
}

.footer-kr, .orbit-char {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
}

/* ===== HERO SECTION ===== */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    background: #f0e8ff;
}

#hero-blob-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-blob {
    width: clamp(300px, 50vw, 500px);
    aspect-ratio: 1;
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    animation: morph 6s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.3), 0 8px 24px rgba(255, 107, 157, 0.2);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fefefe;
    letter-spacing: -0.02em;
}

.hero-dot {
    color: #6bffb8;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: rgba(254, 254, 254, 0.85);
    margin-top: 0.75rem;
}

/* Orbiting value blob */
#orbit-blob {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6bffb8, #ffb088);
    border-radius: 50% 40% 60% 45% / 40% 55% 45% 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -30px;
    animation: orbit 8s linear infinite;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(107, 255, 184, 0.4);
}

.orbit-char {
    font-size: 1.2rem;
    color: #2d1b4e;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 60% 40% 30% 70% / 40% 60% 70% 30%;
    }
    100% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(clamp(140px, 28vw, 280px)) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(clamp(140px, 28vw, 280px)) rotate(-360deg);
    }
}

/* ===== FEEDBACK FORM SECTION ===== */
#feedback-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    min-height: 80vh;
}

#form-blob {
    width: clamp(320px, 80vw, 600px);
    background: #fefefe;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 35% 65% 55% 45% / 45% 55% 65% 35%;
    box-shadow: 0 16px 48px rgba(108, 99, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    animation: formMorph 10s ease-in-out infinite;
}

@keyframes formMorph {
    0% {
        border-radius: 35% 65% 55% 45% / 45% 55% 65% 35%;
    }
    33% {
        border-radius: 55% 45% 40% 60% / 60% 40% 55% 45%;
    }
    66% {
        border-radius: 45% 55% 65% 35% / 35% 65% 45% 55%;
    }
    100% {
        border-radius: 35% 65% 55% 45% / 45% 55% 65% 35%;
    }
}

.form-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #2d1b4e;
    text-align: center;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6c63ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pillow-input {
    width: 100%;
    border-radius: 24px;
    padding: 1rem 1.5rem;
    border: 2px solid #e0d8f0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #2d1b4e;
    background: #fefefe;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pillow-input:focus {
    border-color: #6c63ff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 4px rgba(108, 99, 255, 0.15);
}

.pillow-textarea {
    border-radius: 24px;
    resize: vertical;
    min-height: 100px;
}

/* Slider */
.blob-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, #6c63ff, #ff6b9d);
    border-radius: 100px;
    outline: none;
    margin-top: 0.5rem;
}

.blob-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #6bffb8;
    border-radius: 50% 40% 60% 50% / 45% 55% 45% 55%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(107, 255, 184, 0.5);
    transition: transform 0.2s;
}

.blob-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.blob-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #6bffb8;
    border-radius: 50% 40% 60% 50% / 45% 55% 45% 55%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(107, 255, 184, 0.5);
}

.rating-display {
    display: inline-block;
    background: #6c63ff;
    color: #fefefe;
    width: 1.8em;
    height: 1.8em;
    line-height: 1.8em;
    text-align: center;
    border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    vertical-align: middle;
}

/* Submit button */
.blob-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    color: #fefefe;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, border-radius 0.5s;
    margin-top: 0.5rem;
}

.blob-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.4);
    border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%;
}

.blob-button:active {
    transform: translateY(0) scale(0.98);
}

.btn-blob-icon {
    font-size: 1.3rem;
}

/* ===== FEEDBACK WALL SECTION ===== */
#feedback-wall-section {
    padding: 4rem 2rem 6rem;
    text-align: center;
}

.wall-heading {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #2d1b4e;
    margin-bottom: 0.5rem;
}

.wall-subheading {
    font-size: 1rem;
    color: #6c63ff;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    margin-bottom: 3rem;
}

#feedback-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feedback-bubble {
    padding: 1.5rem;
    border-radius: var(--br, 40% 60% 55% 45% / 55% 45% 60% 40%);
    color: #2d1b4e;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    animation: bubbleIn 0.5s ease-out backwards;
}

.feedback-bubble:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.bubble-name {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.bubble-text {
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0.75rem;
}

.value-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 45% 55% 50% 50% / 50% 50% 55% 45%;
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    align-self: flex-end;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: scale(0.6) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== FOOTER ===== */
#site-footer {
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
}

#footer-blob {
    background: linear-gradient(135deg, #6c63ff, #ff6b9d);
    padding: 1.5rem 3rem;
    border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.2);
}

.footer-text {
    color: #fefefe;
    font-size: 0.95rem;
    text-align: center;
}

.footer-kr {
    font-size: 1.1rem;
}

/* ===== MOBILE (< 640px) ===== */
@media (max-width: 640px) {
    #hero-blob {
        width: 200px;
    }

    #orbit-blob {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        margin-left: -20px;
    }

    .orbit-char {
        font-size: 0.9rem;
    }

    @keyframes orbit {
        0% {
            transform: rotate(0deg) translateX(100px) rotate(0deg);
        }
        100% {
            transform: rotate(360deg) translateX(100px) rotate(-360deg);
        }
    }

    #form-blob {
        border-radius: 30% 70% 60% 40% / 40% 60% 70% 30%;
        padding: 2rem 1.5rem;
    }

    #feedback-wall {
        grid-template-columns: 1fr;
    }

    .blob-button {
        border-radius: 30px;
    }
}

/* ===== SUCCESS ANIMATION ===== */
.submit-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 16px 48px rgba(107, 255, 184, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
    }
}

/* Background decorative blobs */
.bg-blob {
    position: fixed;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
    animation: floatBlob 12s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(30px, -30px) rotate(15deg);
    }
}
