/* Home fullpage presentation scroll */
:root {
    --home-nav-height: 70px;
}

html.home-fullpage,
html.home-fullpage body {
    height: 100%;
    overflow: hidden;
}

html.home-fullpage .footer {
    display: none;
}

.home-presentation {
    position: fixed;
    inset: 0;
    z-index: 2;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 40%, #16213e 100%);
}

.home-scene {
    position: relative;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--home-nav-height) + 24px) 24px 48px;
    overflow: hidden;
}

.home-scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(0, 212, 255, 0.06), transparent 70%);
    pointer-events: none;
}

.home-scene:nth-child(even):not(.home-scene--databuild)::before {
    background: radial-gradient(ellipse 70% 45% at 30% 50%, rgba(102, 126, 234, 0.08), transparent 65%);
}

/* Scene 8~17: Data Build 구간 — 은은한 청록 톤 */
.home-scene--databuild {
    background: linear-gradient(180deg, #0a1218 0%, #0f1f2a 45%, #122a35 100%);
}

.home-scene--databuild::before {
    background: radial-gradient(ellipse 75% 50% at 50% 50%, rgba(0, 212, 255, 0.1), transparent 68%);
}

.home-scene--databuild:nth-child(even)::before {
    background: radial-gradient(ellipse 70% 45% at 35% 50%, rgba(72, 209, 204, 0.09), transparent 65%);
}

.home-scene--bridge .home-scene__inner {
    text-align: center;
}

.home-scene--bridge .home-scene__text {
    text-align: center;
}

/* 절차 한눈에 보기 카드 Scene */
.home-scene--overview {
    align-items: center;
    padding-top: calc(var(--home-nav-height) + 24px);
    padding-bottom: 48px;
}

.home-scene__inner--wide {
    max-width: 1180px;
}

.home-scene__cards-title {
    margin: 0 0 36px;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.02em;
}

.home-presentation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.home-presentation-card {
    padding: 26px 22px;
    background: rgba(0, 212, 255, 0.07);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 14px;
    text-align: left;
}

.home-presentation-card__num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 212, 255, 0.35);
    margin-bottom: 12px;
}

.home-presentation-card h3 {
    margin: 0;
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    font-weight: 600;
    color: #eeeeee;
    line-height: 1.5;
}

.home-scene__inner {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.home-scene.is-visible .home-scene__inner {
    opacity: 1;
    transform: translateY(0);
}

.home-scene__text {
    margin: 0;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-align: center;
}

.home-scene--left .home-scene__inner {
    text-align: left;
}

.home-scene--left .home-scene__text {
    text-align: left;
}

.home-scene__text em {
    font-style: normal;
    background: linear-gradient(135deg, #00d4ff 0%, #8fe8ff 55%, #a8b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-scene__sub {
    display: block;
    margin-top: 1.25rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

.home-scene--cta .home-scene__inner {
    text-align: center;
}

.home-scene__actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.home-scene__actions--dual {
    flex-wrap: wrap;
    gap: 14px;
}

.home-scene__btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    background: linear-gradient(135deg, #00d4ff 0%, #67e8f9 100%);
    border: none;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.35);
}

.home-scene__btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.45);
    color: #0a0a0a;
}

.home-scene__btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.home-scene__btn-alt:hover {
    transform: translateY(-2px);
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.12);
    color: #ffffff;
}

/* Slide progress indicator (page count only) */
.home-scene-nav {
    position: fixed;
    right: 24px;
    top: calc(var(--home-nav-height, 72px) + 16px);
    bottom: auto;
    transform: none;
    z-index: 50;
    pointer-events: none;
}

.home-scene-nav__count {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.06em;
    white-space: nowrap;
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.home-scene__scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: home-scroll-hint 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes home-scroll-hint {
    0%, 100% { opacity: 0.35; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.7; transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 992px) {
    .home-presentation-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-scene-nav {
        right: 16px;
        top: calc(var(--home-nav-height, 72px) + 12px);
    }

    .home-scene-nav__count {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .home-scene {
        padding: calc(var(--home-nav-height) + 16px) 20px 40px;
    }

    .home-scene__inner {
        padding: 0 8px;
    }

    .home-scene--left .home-scene__inner,
    .home-scene--left .home-scene__text {
        text-align: center;
    }

    .home-presentation-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .home-scene__cards-title {
        margin-bottom: 20px;
        font-size: 1.45rem;
    }

    .home-presentation-card {
        padding: 18px 14px;
    }

    .home-presentation-card h3 {
        font-size: 0.95rem;
    }

    .home-presentation-card__num {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-presentation {
        scroll-behavior: auto;
    }

    .home-scene {
        scroll-snap-stop: normal;
    }

    .home-scene__inner {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .home-scene__scroll-hint {
        animation: none;
    }
}
