/* base.css 는 앱(/app) 풀스크린용으로 body { overflow: hidden; height: 100% }
   을 건다. 랜딩은 세로 스크롤이 필요하므로 body + html 을 모두 override. */
html:has(body.landing-body) {
    height: auto;
    overflow: auto;
    scroll-behavior: smooth;
}

.landing-body {
    visibility: hidden;
    margin: 0;
    background: #050712;
    color: #ecffff;
    font-family: var(--font-body);
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.landing-body.landing-ready {
    visibility: visible;
}

.landing-body .glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    border-radius: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 100;
}

.landing-body .logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    font-size: var(--text-lg);
}

.landing-body .tabs {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 72px;
    margin-left: 0;
}

.landing-body .nav-auth {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
}

.landing-body .tab-btn {
    background: transparent;
    border-radius: 0;
    padding: 6px 0;
    color: rgba(236, 255, 255, 0.62);
    font-weight: 500;
    font-size: var(--text-base);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.landing-body .tab-btn:hover {
    background: transparent;
    color: #ecffff;
}

.landing-body .tab-btn.active {
    background: transparent;
    color: #ecffff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .landing-body .glass-nav {
        padding: 16px 20px;
        gap: 12px;
    }
    .landing-body .logo {
        flex: 0 0 auto;
    }
    .landing-body .tabs {
        flex: 1 1 auto;
        gap: 20px;
    }
    .landing-body .nav-auth {
        flex: 0 0 auto;
    }
    .landing-body .tab-btn {
        font-size: 12px;
        white-space: nowrap;
    }
    /* 모바일에선 About Us 탭 숨김 — 상단 공간 절약
       (랜딩 푸터에 About 링크 있음. 발표 이후 제거 예정) */
    .landing-body #landing-tab-about {
        display: none;
    }

    /* eyebrow/sub 은 모바일에서 display:none — replay-active fade 는 headline 제외.
       headline 은 상단(top:88px) 에 배치돼 말풍선과 겹치지 않으므로 유지. */
}

.landing-main {
    display: flex;
    flex-direction: column;
}

.landing-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.landing-section--hero {
    background: radial-gradient(circle at 18% 12%, #11303b 0%, #08171d 45%, #050d12 100%);
    overflow: hidden;
    padding: 0;
}

/* 1단 → 2단 경계 흐림 — 1단 하단에 Globe 별빛 canvas 를 가리며 #050d12 로 페이드 */
.landing-section--hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 220px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(5, 13, 18, 0.55) 50%,
        #050d12 100%);
    pointer-events: none;
    z-index: 1;
}

.landing-globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* 휠 스크롤이 body 로 통과하게 — 랜딩은 Replay 자동재생이라 지구본 직접 조작 불필요 */
    pointer-events: none;
}

.landing-globe canvas {
    display: block;
}

/* 5.8 파트 2 — 랜딩 hero 를 앱 Memories hero-title 과 동일화
   (좌측 상단, Pretendard 800, highlight accent) */
.landing-hero {
    position: absolute;
    top: clamp(100px, 22vh, 220px);
    left: clamp(20px, 7vw, 90px);
    max-width: min(92vw, 640px);
    z-index: 2;
    pointer-events: none;
    color: #ecffff;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* eyebrow 은 앱 Memories hero 에 없으므로 숨김. 모바일은 별도 미디어쿼리에서도 동일 */
.landing-hero__eyebrow {
    display: none;
}

.landing-hero__headline {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: clamp(2.4rem, 8.8vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: #f3ffff;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.landing-hero__headline .highlight {
    color: var(--color-accent);
}

.landing-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.18rem);
    line-height: 1.5;
    color: var(--color-text-primary);
    font-weight: 500;
    margin: 0 0 22px;
    max-width: 420px;
}

.landing-hero__cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #04161a;
    background: linear-gradient(135deg, #a8f0e2 0%, #73e5d8 55%, #3ec9c7 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 14px 36px -12px rgba(62, 201, 199, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(62, 201, 199, 0.7);
}

.landing-hero__cta:focus-visible {
    outline: 2px solid #a8f0e2;
    outline-offset: 3px;
}

.landing-hero__skip {
    position: absolute;
    top: 96px;
    right: 32px;
    z-index: 3;
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(236, 255, 255, 0.72);
    background: rgba(5, 13, 18, 0.55);
    border: 1px solid rgba(140, 230, 216, 0.22);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: color 0.2s ease, border-color 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

.landing-hero__skip.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.landing-hero__skip:hover {
    color: #ecffff;
    border-color: rgba(140, 230, 216, 0.5);
}

.landing-hero__scroll-hint {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(236, 255, 255, 0.78);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    pointer-events: none;
}

.landing-hero__scroll-text {
    opacity: 0.72;
}

.landing-hero__scroll-arrow {
    font-size: 2rem;
    line-height: 1;
    color: #8ce6d8;
    text-shadow: 0 0 12px rgba(140, 230, 216, 0.45);
    animation: landingScrollArrow 1.8s ease-in-out infinite;
}

@keyframes landingScrollArrow {
    0%   { transform: translateY(0);    opacity: 0.55; }
    50%  { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(0);    opacity: 0.55; }
}

.landing-replay-plane-wrapper {
    pointer-events: none;
}

.landing-replay-plane {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 10px rgba(140, 230, 216, 0.55));
    display: block;
}

/* 앱의 .replay-globe-bubble 구조 차용 — wrap 은 좌표 앵커(빈 inline-block),
   카드는 그 위쪽으로 bottom:100% + translateX(-50%) 로 떠 있음. tail 은 ::after. */
.landing-replay-bubble-wrap {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
    pointer-events: none;
}

.landing-replay-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: max-content;
    max-width: min(420px, 80vw);
    padding: 10px 14px 10px 10px;
    background: rgba(8, 28, 36, 0.92);
    border: 1px solid rgba(62, 201, 199, 0.32);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.6);
    text-align: left;
    animation: landingBubbleIn 320ms ease-out;
}

.landing-replay-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 7px;
    background: rgba(8, 28, 36, 0.92);
    border-right: 1px solid rgba(62, 201, 199, 0.32);
    border-bottom: 1px solid rgba(62, 201, 199, 0.32);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

@keyframes landingBubbleIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.landing-replay-bubble--no-photo {
    padding-left: 14px;
}

.landing-replay-bubble__photo {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #0e2b35, #061218);
}

.landing-replay-bubble__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-replay-bubble__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    justify-content: center;
}

.landing-replay-bubble__city {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: #ecffff;
    line-height: 1.3;
    letter-spacing: 0.01em;
    word-break: keep-all;
}

.landing-replay-bubble__memo {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(207, 230, 227, 0.82);
    line-height: 1.5;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .landing-replay-bubble {
        max-width: min(320px, 86vw);
        padding: 8px 12px 8px 8px;
        gap: 10px;
    }
    .landing-replay-bubble__photo {
        width: 56px;
        height: 56px;
    }
    .landing-replay-bubble__city {
        font-size: 0.86rem;
    }
    .landing-replay-bubble__memo {
        font-size: 0.74rem;
    }
}

@media (max-width: 768px) {
    /* 모바일 hero: section 에 flex column — 상단 headline / 하단 sub+CTA */
    .landing-hero {
        left: 0;
        right: 0;
        top: 72px;      /* nav 바로 아래 */
        bottom: 0;
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0 5vw 12vh;
    }
    /* 모바일은 headline + CTA 만 — eyebrow/sub 모두 숨김 */
    .landing-hero__eyebrow,
    .landing-hero__sub {
        display: none;
    }
    .landing-hero__headline {
        font-size: clamp(1.75rem, 8vw, 2.9rem);
        margin: 0;
        align-self: flex-start;
        text-align: left;
    }
    /* CTA 만 하단 중앙으로 — margin-top:auto 로 section 하단까지 밀어냄 */
    .landing-hero__cta {
        align-self: center;
        margin-top: auto;
        padding: 14px 28px;
        font-size: 0.88rem;
        min-height: 44px;
    }
    .landing-hero__skip {
        top: 80px;
        right: 16px;
        padding: 8px 12px;
        font-size: 0.72rem;
        min-height: 36px;
    }
    .landing-hero__scroll-hint {
        bottom: 2vh;
        font-size: 0.72rem;
        gap: 6px;
    }
    .landing-hero__scroll-arrow {
        font-size: 1.5rem;
    }
}

.landing-section--flow {
    background: linear-gradient(180deg, #050d12 0%, #0a1118 50%, #050d12 100%);
}

/* 1단 → 2단 경계 흐림 — 2단 상단에 #050d12 페이드 오버레이 */
.landing-section--flow::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 180px;
    background: linear-gradient(to bottom,
        #050d12 0%,
        rgba(5, 13, 18, 0.7) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* 2단 → 3단 경계 흐림 — 2단 하단에 3단 시작색 #030507 쪽으로 페이드 */
.landing-section--flow::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(3, 5, 7, 0.55) 50%,
        #030507 100%);
    pointer-events: none;
    z-index: 0;
}

.landing-section--cta {
    min-height: 88vh;
    background: radial-gradient(ellipse at bottom, #0a1720 0%, #030507 80%);
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(80px, 10vh, 140px) 24px 36px;
    gap: 48px;
}

/* 2단 → 3단 경계 흐림 — 3단 상단에 #030507 로 페이드해 2단 하단과 매끄럽게 */
.landing-section--cta::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 180px;
    background: linear-gradient(to bottom,
        #030507 0%,
        rgba(3, 5, 7, 0.7) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.landing-cta {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-cta__eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 12px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8ce6d8;
    background: rgba(140, 230, 216, 0.08);
    border: 1px solid rgba(140, 230, 216, 0.32);
    border-radius: 999px;
}

.landing-cta__headline {
    font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
    line-height: 1.12;
    color: #f3ffff;
    margin: 0 0 22px;
    letter-spacing: -0.005em;
}

.landing-cta__sub {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
    color: rgba(207, 230, 227, 0.82);
    margin: 0 auto 48px;
    max-width: 560px;
}

.landing-cta__trust {
    display: flex;
    justify-content: center;
    gap: clamp(32px, 6vw, 72px);
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.landing-cta__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.landing-cta__trust-value {
    font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #8ce6d8;
    letter-spacing: 0.01em;
}

/* 한글 텍스트 값("전 세계") — 숫자 대비 시각 무게 보정 */
.landing-cta__trust-value--text {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    letter-spacing: -0.005em;
    font-weight: 600;
}

.landing-cta__trust-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(207, 230, 227, 0.58);
}

.landing-cta__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.landing-cta__primary {
    pointer-events: auto;
}

.landing-cta__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(236, 255, 255, 0.78);
    background: transparent;
    border: 1px solid rgba(140, 230, 216, 0.3);
    border-radius: 999px;
    padding: 15px 28px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.landing-cta__secondary:hover {
    color: #ecffff;
    border-color: rgba(140, 230, 216, 0.55);
}

.landing-cta__note {
    font-family: var(--font-body);
    font-size: 0.74rem;
    color: rgba(207, 230, 227, 0.42);
    margin: 16px auto 0;
    max-width: 540px;
    line-height: 1.55;
}

.landing-footer {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(140, 230, 216, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(207, 230, 227, 0.58);
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.landing-footer__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-footer__brand {
    font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
    font-style: italic;
    font-weight: 500;
    color: #ecffff;
    letter-spacing: 0.02em;
}

.landing-footer__divider {
    color: rgba(140, 230, 216, 0.4);
}

.landing-footer__links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-footer__links a {
    color: rgba(140, 230, 216, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.landing-footer__links a:hover {
    color: #ecffff;
}

.landing-footer__copy {
    margin: 6px 0 0;
    font-size: 0.74rem;
    color: rgba(207, 230, 227, 0.4);
}

@media (max-width: 768px) {
    .landing-section--cta {
        min-height: auto;
        padding: 72px 20px 32px;
    }
    .landing-cta__headline {
        font-size: clamp(1.45rem, 7vw, 2.1rem);
    }
    .landing-cta__sub {
        font-size: 0.8rem;
        margin-bottom: 36px;
    }
    .landing-cta__trust {
        gap: 24px;
        margin-bottom: 32px;
    }
    .landing-cta__trust-value {
        font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    }
    .landing-cta__trust-label {
        font-size: 0.66rem;
    }
    .landing-cta__actions {
        flex-direction: column;
        gap: 12px;
    }
    .landing-cta__secondary {
        padding: 12px 22px;
        font-size: 0.78rem;
    }
    .landing-cta__note {
        font-size: 0.66rem;
    }
}

.landing-placeholder {
    max-width: 420px;
    text-align: center;
    padding: 32px 28px;
    border: 1px dashed rgba(140, 230, 216, 0.28);
    border-radius: 14px;
    background: rgba(10, 17, 24, 0.55);
    backdrop-filter: blur(6px);
}

.landing-placeholder__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: #8ce6d8;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.landing-placeholder__text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #cfe6e3;
    margin: 0;
}

.landing-placeholder__text small {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.82rem;
    color: rgba(207, 230, 227, 0.5);
}

@media (max-width: 768px) {
    .landing-placeholder {
        max-width: 320px;
        padding: 24px 20px;
    }

    .landing-placeholder__text {
        font-size: 0.95rem;
    }
}
