/* ggaji.com -- 까지 (until/up to/as far as) */

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

:root {
    --ocean-deep: #0E2A4A;
    --limit-gold: #E8C44A;
    --foam-white: #F0ECE4;
    --boundary-blue: #4A8BD9;
    --extent-green: #4CAF7A;
    --rest-gray: #6B7A8A;
    --dark-current: #0A1A2E;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--dark-current);
    color: var(--foam-white);
    overflow-x: hidden;
    line-height: 1.8;
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 400;
}

/* === Hero Section === */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--ocean-deep);
    padding: 0 5vw;
}

.hero-content {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 800;
    color: var(--foam-white);
    opacity: 0;
    transform: translateY(10px);
    line-height: 1.2;
}

.hero-title.visible {
    animation: fadeRise 600ms ease-out forwards;
}

.hero-subtitle {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    color: var(--foam-white);
    opacity: 0;
    letter-spacing: 0.15em;
    margin-top: 8px;
}

.hero-subtitle.visible {
    animation: fadeIn 400ms ease-out forwards;
}

.hero-meaning {
    font-family: 'Space Mono', monospace;
    font-size: clamp(12px, 1.2vw, 16px);
    color: var(--rest-gray);
    opacity: 0;
    margin-top: 12px;
    letter-spacing: 0.1em;
}

.hero-meaning.visible {
    animation: fadeIn 400ms ease-out forwards;
}

/* === Progress Bars === */
.hero-progress-container {
    width: 80%;
    max-width: 900px;
    opacity: 0;
}

.hero-progress-container.visible {
    animation: fadeIn 400ms ease-out forwards;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(107, 122, 138, 0.2);
    border-radius: 4px;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--limit-gold);
    border-radius: 4px;
    transition: width 800ms ease-out;
}

.progress-fill.fill-green {
    background: var(--extent-green);
}

.progress-fill.fill-gold {
    background: var(--limit-gold);
}

.progress-fill.animate {
    width: var(--target-width);
}

/* === Boundary Markers === */
.boundary-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.marker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--limit-gold);
    transform: scale(0);
    transition: transform 200ms ease-out;
}

.marker-dot.visible {
    transform: scale(1);
}

.marker-dot.bounce {
    animation: markerBounce 300ms ease-out;
}

.annotation-line {
    margin-top: 4px;
    opacity: 0;
    transition: opacity 300ms ease-out;
}

.annotation-line.visible {
    opacity: 1;
}

.annotation-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--rest-gray);
    opacity: 0;
    transition: opacity 300ms ease-out;
    white-space: nowrap;
    margin-top: 2px;
}

.annotation-label.visible {
    opacity: 1;
}

/* === Curve Dividers === */
.curve-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
}

.flowing-curve {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s ease-out;
}

.flowing-curve.drawn {
    stroke-dashoffset: 0;
}

/* === Content Sections === */
.content-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 5vw 140px;
    background-color: var(--dark-current);
}

.content-section:nth-child(even) {
    background-color: var(--ocean-deep);
}

.section-inner {
    width: 100%;
    max-width: 900px;
}

/* === Skeleton Loading === */
.skeleton-wrapper {
    position: relative;
}

.skeleton-block {
    border-radius: 4px;
    background: rgba(107, 122, 138, 0.15);
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-title {
    width: 200px;
    height: 40px;
    margin-bottom: 12px;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-wrapper.resolved {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    transition: opacity 400ms ease-out;
}

.reveal-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.reveal-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Section Typography === */
.section-heading {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(28px, 5.5vw, 64px);
    font-weight: 700;
    color: var(--foam-white);
    margin-bottom: 4px;
}

.section-subheading {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--limit-gold);
    margin-bottom: 16px;
}

.section-body {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    color: var(--rest-gray);
    max-width: 640px;
    margin-bottom: 48px;
    line-height: 1.8;
}

/* === Progress Group === */
.progress-group {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.progress-item {
    width: 100%;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.label-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(14px, 1.3vw, 16px);
    color: var(--foam-white);
    font-weight: 400;
}

.label-value {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--limit-gold);
    font-weight: 700;
}

/* === Extent Indicators (Circles) === */
.extent-indicators {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.extent-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.extent-circle {
    width: 90px;
    height: 90px;
}

.extent-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.extent-ring {
    fill: none;
    stroke: rgba(107, 122, 138, 0.2);
    stroke-width: 2;
}

.extent-fill-ring {
    fill: none;
    stroke: var(--boundary-blue);
    stroke-width: 2;
    stroke-dasharray: 301.6;
    stroke-dashoffset: 301.6;
    transition: stroke-dashoffset 600ms ease-out;
}

.extent-fill-ring.animate {
    stroke-dashoffset: var(--target-offset);
}

.extent-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 14px;
    color: var(--foam-white);
}

.extent-value {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--boundary-blue);
    font-weight: 700;
}

/* === Vertical Bars === */
.vertical-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 24px;
    height: 220px;
    margin-top: 40px;
}

.vertical-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.bar-container {
    width: 32px;
    height: 180px;
    background: rgba(107, 122, 138, 0.15);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.bar-fill {
    width: 100%;
    height: 0%;
    background: var(--limit-gold);
    border-radius: 4px;
    transition: height 800ms ease-out;
}

.bar-fill.animate {
    height: var(--target-height);
}

.bar-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--rest-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Closing Section === */
.section-closing {
    min-height: 60vh;
    background-color: var(--ocean-deep);
    text-align: center;
}

.closing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(36px, 7vw, 80px);
    font-weight: 800;
    color: var(--foam-white);
    margin-bottom: 4px;
}

.closing-subtitle {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 600;
    color: var(--limit-gold);
    margin-bottom: 40px;
}

.closing-progress {
    width: 60%;
    max-width: 500px;
    margin-bottom: 32px;
}

.closing-track {
    height: 6px;
}

.closing-body {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: clamp(14px, 1.4vw, 17px);
    color: var(--rest-gray);
    font-weight: 400;
}

/* === Animations === */
@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

@keyframes markerBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* === Responsive === */
@media (max-width: 640px) {
    .hero-progress-container {
        width: 90%;
    }

    .extent-indicators {
        gap: 24px;
    }

    .extent-circle {
        width: 70px;
        height: 70px;
    }

    .vertical-bars {
        gap: 12px;
    }

    .bar-container {
        width: 24px;
        height: 140px;
    }

    .content-section {
        padding: 80px 5vw 120px;
    }
}
