/* ==========================================
   티킷 랜딩 페이지 스타일시트
   ========================================== */

/* 리셋 및 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.platform-link {
    text-decoration: none;
    /* 링크 밑줄 제거 */
    color: inherit;
    /* 색상 상속 */
    display: block;
    /* 블록 레벨로 전체 영역 클릭 */
    cursor: pointer;
    /* 포인터 커서 */
}

.platform-link:hover {
    transform: translateY(-8px);
    /* 더 강한 hover 효과 */
    box-shadow: 0px 12px 64px rgba(0, 0, 0, 0.15);
}

/* 루트 변수 정의 */
:root {
    --primary-purple: #7023C7;
    --primary-blue: #5189FB;
    --primary-navy: #0F29C1;
    --text-primary: #1E1E1E;
    --text-secondary: #242424;
    --text-muted: #737373;
    --text-light: #666;
    --bg-primary: #ffffff;
    --bg-secondary: #F6F8F9;
    --bg-footer: #F9FAFB;
    --border-light: #EAEFFB;
    --shadow-card: 0px 4px 54px rgba(0, 0, 0, 0.05);
    --gradient-highlight: linear-gradient(59deg, #7023C7 24.53%, #0F29C1 49.31%, #5189FB 69.53%);
}

/* 기본 타이포그래피 */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    font-display: swap;
}

/* 접근성 및 성능 최적화 */
img {
    max-width: 100%;
    height: auto;
}

/* 스킵 링크 (접근성) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-purple);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* ==========================================
   헤더 스타일
   ========================================== */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.header .container {
    display: flex;
    width: 100%;
    max-width: 1440px;
    height: 80px;
    padding: 25px 120px;
    align-items: center;
    margin: 0 auto;
}

.logo {
    font-size: 0;
    /* SVG 사용 시 */
}

.logo svg {
    width: auto;
    height: 30px;
}

/* ==========================================
   공통 컨테이너
   ========================================== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

/* ==========================================
   히어로 섹션
   ========================================== */
.hero-section {
    background: var(--bg-primary);
    padding: 60px 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: 555px;
}

.hero-text {
    flex: 0 0 408px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    position: relative;
    padding-bottom: 16px;
}

.hero-title h2 {
    font-size: 48px;
    font-weight: 800;
    line-height: 72px;
    color: var(--text-primary);
    margin: 0;
}

.hero-title .highlight {
    color: var(--primary-purple);
    position: absolute;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.5;
    background: var(--gradient-highlight);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-description p {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--text-secondary);
    margin: 0;
}

/* 히어로 비주얼 */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockups {
    position: relative;
    width: 684px;
    height: 555px;
}

.phone {
    position: absolute;
    background: var(--bg-primary);
    border-radius: 28px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
}

.phone-large {
    width: 350px;
    height: 349px;
    left: 0;
    top: 45px;
}

.phone-medium-1 {
    width: 236px;
    height: 280px;
    left: 380px;
    top: 0;
}

.phone-medium-2 {
    width: 255px;
    height: 245px;
    left: 214px;
    top: 305px;
}

.phone-small {
    width: 180px;
    height: 124px;
    left: 500px;
    top: 304px;
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

/* ==========================================
   플랫폼 섹션
   ========================================== */
.platforms-section {
    background: var(--bg-secondary);
    padding: 120px 0;
}

.platforms-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 45px;
    color: var(--text-primary);
    margin-bottom: 60px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.platform-card {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 64px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 42px 36px 27px;
    flex-grow: 1;
}

.card-category {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 12px;
}

.card-category.franchise {
    color: var(--primary-blue);
}

.card-category.beauty {
    color: var(--primary-purple);
}

.card-category.auto {
    color: var(--primary-navy);
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 35px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: var(--text-muted);
}

.card-visual {
    height: 252px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   푸터 스타일
   ========================================== */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-footer);
    padding: 40px 0;
}

.footer .container {
    width: 100%;
    max-width: 1440px;
    padding: 0 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer_1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer_1_2 {
    color: #4F4F4F;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: -0.1px;
}

.footer_2 h4 {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    margin: 0;
}

.footer_3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.footer_3_1 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer_3_1 span {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 400;
    line-height: 14.4px;
}

.footer_3_2 {
    display: flex;
    width: 543px;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 4px 0;
    flex-wrap: wrap;
}

.footer_3_2 span {
    color: var(--text-light);
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.12px;
}

.footer_4 span {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 400;
    line-height: 16.8px;
}

/* ==========================================
   반응형 디자인
   ========================================== */

/* 태블릿 */
@media (max-width: 1200px) {

    .container,
    .platforms-container,
    .header .container,
    .footer .container {
        padding: 0 60px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    /* 태블릿에서는 기본 순서 유지 */
    .hero-text {
        flex: none;
        max-width: 500px;
        margin: 0 auto;
        order: 1;
        /* 텍스트가 위 */
    }

    .hero-visual {
        order: 2;
        /* 비주얼이 아래 */
    }

    .phone-mockups {
        transform: scale(0.8);
    }
}

/* 모바일 */
@media (max-width: 768px) {

    .logo svg {
        height: 20px;
    }

    .hero-section {
        padding: 30px 15px;
    }

    .container,
    .platforms-container,
    .header .container,
    .footer .container {
        padding: 0 15px;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* 모바일에서 히어로 섹션 순서 변경 */
    .hero-visual {
        order: 1;
        max-height: 400px;
        /* 위로 이동 */
    }

    .hero-text {
        order: 2;
        margin: 0;
        text-align: left;
        width: 100%;
        /* 아래로 이동 */
    }

    .hero-title h2 {
        color: #000;
        font-family: Pretendard;
        font-size: 36px;
        font-style: normal;
        font-weight: 800;
        line-height: 140%;
    }

    .hero-title .highlight {
        font-family: Pretendard;
        font-size: 36px;
        font-style: normal;
        font-weight: 800;
        line-height: 140%;
    }

    .section-title {
        font-size: 24px;
        line-height: 36px;
    }

    .phone-mockups {
        transform: scale(0.6);
    }

    .footer_1,
    .footer_3 {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .footer_3_2 {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .footer_3_2 span {
        text-align: left;
    }
}

/* 초소형 모바일 */
@media (max-width: 480px) {
    /* 모바일 순서 설정이 상속됨: visual(1) -> text(2) */

    .hero-title h2 {
        font-size: 36px;
        line-height: 140%;
    }

    .hero-title .highlight {
        font-family: Pretendard;
        font-size: 36px;
        font-style: normal;
        font-weight: 800;
        line-height: 140%;
    }

    .card-content {
        padding: 30px 24px 20px;
    }

    .card-title {
        font-size: 24px;
        line-height: 30px;
    }
}

/* ==========================================
   성능 최적화 및 접근성
   ========================================== */

/* 애니메이션 감소 설정 */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 포커스 표시 개선 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* 프린트 스타일 */
@media print {

    .header,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero-visual,
    .card-visual {
        display: none;
    }
}