/* ggaji.com - Frutiger Aero Glossy Interactive */

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

body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    color: #2A3038;
    background: #A8D8F0;
    overflow-x: hidden;
    line-height: 1.7;
}

.noto-kr {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
}

.section {
    width: 100%;
    position: relative;
}

/* ========== GRADIENT SKY BACKGROUND ========== */

.sky-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #A8D8F0 0%, #F0E8A8 50%, #A8F0C8 100%);
    background-size: 200% 200%;
    animation: skyRotate 30s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes skyRotate {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 100%; }
}

/* ========== FROSTED GLASS PANEL ========== */

.glass-panel {
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* ========== AERO HERO ========== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 40px 24px;
}

.hero-panels {
    display: flex;
    gap: 24px;
    max-width: 960px;
    width: 100%;
}

.hero-panel {
    flex: 1;
    padding: 40px;
    opacity: 0;
}

.panel-left {
    transform: translateX(-60px);
    transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.panel-right {
    transform: translateX(60px);
    transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.panel-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6A7888;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.panel-heading {
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
    color: #2A3038;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.panel-body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #2A3038;
    position: relative;
    z-index: 2;
}

.ggaji-char {
    display: inline-block;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 300ms ease, transform 300ms ease;
}

.ggaji-char.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========== SHARP ANGLE DIVIDERS ========== */

.angle-divider {
    height: 60px;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
    background: rgba(96, 184, 232, 0.15);
    transform: scaleX(0);
    transition: transform 400ms ease;
}

.angle-divider.visible {
    transform: scaleX(1);
}

/* ========== SPLIT SCREEN SECTIONS ========== */

.split-section {
    position: relative;
    z-index: 1;
    padding: 60px 24px;
}

.split-panels {
    display: flex;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.split-panel {
    flex: 1;
    padding: 40px;
}

.split-from {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 500ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.split-to {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 500ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.split-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.panel-tag {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #60B8E8;
    display: inline-block;
    background: rgba(96, 184, 232, 0.15);
    padding: 4px 16px;
    border-radius: 50vh;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.split-heading {
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.01em;
    color: #2A3038;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

/* ========== INTERACTIVE PLAYGROUND ========== */

.playground-section {
    position: relative;
    z-index: 1;
    padding: 60px 24px;
    display: flex;
    justify-content: center;
}

.playground-panel {
    max-width: 720px;
    width: 100%;
    padding: 48px;
}

.playground-heading {
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: -0.01em;
    color: #2A3038;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.playground-sub {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #6A7888;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.widget-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.widget {
    flex: 1;
    text-align: center;
}

.widget-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6A7888;
    display: block;
    margin-bottom: 12px;
}

.progress-track {
    height: 24px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50vh;
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(180deg, #48D878 0%, #3AC068 100%);
    border-radius: 50vh;
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50vh;
}

.widget-value {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: #2A3038;
    display: block;
    margin-top: 8px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.slider-track {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50vh;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.slider-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(180deg, #60B8E8 0%, #4A9AD0 100%);
    border-radius: 50vh;
    position: relative;
    transition: width 100ms ease;
}

.slider-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50vh;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E8F0F8 100%);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: grab;
    z-index: 3;
}

.slider-thumb::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
}

/* ========== DESTINATION FOOTER ========== */

.footer-section {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    display: flex;
    justify-content: center;
}

.footer-panel {
    max-width: 800px;
    width: 100%;
    padding: 60px 40px;
    text-align: center;
}

.footer-brand {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #2A3038;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.footer-tagline {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #6A7888;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.footer-credit {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: #6A7888;
    opacity: 0.6;
    position: relative;
    z-index: 2;
}

/* ========== SPARKLE EFFECT ========== */

.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    z-index: 999;
    animation: sparkleBurst 300ms ease-out forwards;
}

@keyframes sparkleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .hero-panels,
    .split-panels {
        flex-direction: column;
    }

    .hero-panel,
    .split-panel {
        padding: 32px;
    }

    .panel-left {
        transform: translateY(-30px);
    }

    .panel-right {
        transform: translateY(30px);
    }

    .hero-panel.visible,
    .split-panel.visible {
        transform: translateY(0);
    }

    .split-from {
        transform: translateY(-30px);
    }

    .split-to {
        transform: translateY(30px);
    }

    .widget-row {
        flex-direction: column;
        gap: 16px;
    }

    .playground-panel {
        padding: 32px 24px;
    }
}
