/* ==============================================
   Main Landing Page Styles (cs-main- prefix)
   ============================================== */

/* --- Layout Override --- */
.cs-main-page {
    background: #fff;
    overflow-x: hidden;
}

.cs-main-page .auth-header {
    background: transparent;
    border-bottom: none;
    position: absolute;
    width: 100%;
}

/* Figma 메인화면: 로고 x=360, 콘텐츠 폭 1200 (좌우 360px 여백) 기준 */
.cs-main-page .auth-header .header-inner {
    max-width: 1200px;
    padding: 0;
}

@media (max-width: 1240px) {
    .cs-main-page .auth-header .header-inner {
        padding: 0 40px;
    }
}

/* --- Hero Section --- */
.cs-main-hero {
    position: relative;
    height: 821px;
    background: linear-gradient(180deg, #BAD7FD 10.7%, #F6F6FA 100%);
    overflow: hidden;
}

/* Hero 배경 화폐 심볼 장식 (Figma 864:14558/14559/14560) */
.cs-main-hero-bg {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.cs-main-hero-bg img {
    position: absolute;
    max-width: none;
    height: 286.83%;
    top: -88.24%;
}

/* 좌측 원화 ₩ */
.cs-main-hero-bg-krw {
    top: 238px;
    left: -175px;
    width: 387.382px;
    height: 378.892px;
    aspect-ratio: 91 / 89;
    transform: rotate(-20.037deg);
    opacity: 0.08;
}
.cs-main-hero-bg-krw img {
    left: -272.88%;
    width: 420.82%;
}

/* 우측 달러 $ (뒷배경) */
.cs-main-hero-bg-usd {
    top: 473px;
    right: -110px;
    width: 394px;
    height: 357px;
    aspect-ratio: 181 / 164;
    transform: rotate(-13.007deg);
    opacity: 0.05;
}
.cs-main-hero-bg-usd img {
    left: -43.4%;
    width: 389.85%;
}

/* 우측 엔화 ¥ (앞) */
.cs-main-hero-bg-jpy {
    top: 341px;
    right: -160px;
    width: 246px;
    height: 238px;
    aspect-ratio: 92 / 89;
    transform: rotate(-39.749deg);
    opacity: 0.12;
}
.cs-main-hero-bg-jpy img {
    left: -157.57%;
    width: 415.14%;
}

.cs-main-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    height: 100%;
    z-index: 1;
}

.cs-main-hero-text {
    position: relative;
    padding-top: 195px;
    z-index: 2;
}

.cs-main-hero-text h1 {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 68px;
    color: #0F2A44;
    margin: 0 0 30px 0;
}

.cs-main-hero-text h1 .highlight {
    color: #00CC4C;
}

.cs-main-hero-text .sub {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #4E4E4E;
    margin: 0 0 60px 0;
}

.cs-main-hero-buttons {
    display: flex;
    gap: 12px;
}

.cs-main-hero-buttons .btn-inquiry {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 16px 32px;
    border-radius: 12px;
    background: #fff;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F2A44;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 24px;
}

.cs-main-hero-buttons .btn-inquiry:hover {
    background: #f0f0f0;
    text-decoration: none;
}

.cs-main-hero-buttons .btn-start {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 16px 32px;
    border-radius: 12px;
    background: #0F2A44;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 24px;
}

.cs-main-hero-buttons .btn-start:hover {
    background: #1A3A5C;
    text-decoration: none;
}

.cs-main-hero-image {
    position: absolute;
    right: -60px;
    top: 66px;
    width: 737px;
    height: 675px;
    z-index: 1;
}

.cs-main-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Section Common --- */
.cs-main-section {
    padding: 100px 40px;
    text-align: center;
}

.cs-main-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cs-main-section .section-en {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #202020;
    margin-bottom: 8px;
}

.cs-main-section .section-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    color: #202020;
    margin-bottom: 12px;
}

.cs-main-section .section-title .highlight {
    color: #00CC4C;
}

.cs-main-section .section-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #4E4E4E;
}

/* --- About Section --- */
.cs-main-about {
    padding-top: 60px;
    padding-bottom: 60px;
}

.cs-main-about .about-headline {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 44px;
    color: #202020;
    margin-bottom: 0;
}

.cs-main-about .about-headline strong {
    font-weight: 700;
}

/* --- Features Section --- */
.cs-main-features {
    padding-top: 40px;
    padding-bottom: 80px;
}

.cs-main-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.cs-main-feature-card {
    background: #F6F8FB;
    border-radius: 14px;
    padding: 40px 16px;
    text-align: center;
}

.cs-main-feature-card .card-image {
    width: 180px;
    height: 160px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-main-feature-card .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cs-main-feature-card .card-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    color: #202020;
    margin-bottom: 16px;
}

.cs-main-feature-card .card-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #4E4E4E;
}

/* --- How-to Section --- */
.cs-main-howto {
    padding-top: 80px;
    padding-bottom: 100px;
}

.cs-main-howto-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 60px;
    text-align: left;
}

/* How-to: Screenshot Carousel */
.cs-main-howto-preview {
    flex: 0 0 586px;
}

.cs-main-howto-slides {
    position: relative;
    width: 586px;
    height: 330px;
    overflow: hidden;
    background: #fff;
}

.cs-main-howto-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cs-main-howto-slide.active {
    opacity: 1;
}

.cs-main-howto-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cs-main-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}

.cs-main-carousel-dots .dot {
    width: 16px;
    height: 6px;
    border-radius: 3px;
    background: #D3D3D3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cs-main-carousel-dots .dot.active {
    width: 24px;
    background: #0F2A44;
}

/* How-to: Steps */
.cs-main-howto-steps {
    flex: 1;
    padding-top: 20px;
}

.cs-main-howto-steps .step-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 32px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cs-main-howto-steps .step-item:last-child {
    margin-bottom: 0;
}

.cs-main-howto-steps .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: #D3D3D3;
    font-family: 'Noto Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.cs-main-howto-steps .step-item.active .step-number {
    background: #0F2A44;
}

.cs-main-howto-steps .step-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    color: #D3D3D3;
    margin: 0;
    transition: color 0.3s ease;
}

.cs-main-howto-steps .step-item.active .step-title {
    color: #202020;
}

.cs-main-howto-steps .step-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #4E4E4E;
    margin: 12px 0 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.cs-main-howto-steps .step-item.active .step-desc {
    max-height: 100px;
    opacity: 1;
}

/* --- Lower Fees Section --- */
.cs-main-fees {
    padding-top: 100px;
    padding-bottom: 100px;
}

.cs-main-fee-compare {
    max-width: 600px;
    margin: 60px auto 0;
}

.fee-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

.fee-row:last-child {
    margin-bottom: 0;
}

.fee-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #F6F6F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.fee-icon img {
    width: 66px;
    height: 63px;
    object-fit: contain;
}

.fee-row.coinshot .fee-icon {
    background: #E8F9ED;
    border: 2px solid #00CC4C;
}

.fee-row.coinshot .fee-icon img {
    width: 78px;
    height: 83px;
}

.fee-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: -20px;
    padding-left: 0;
}

.fee-bar {
    height: 60px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    padding: 0 16px 0 32px;
    width: 0;
    overflow: hidden;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fee-bar.bank-bar {
    background: #EDEDED;
}

.fee-bar.coinshot-bar {
    background: #00CC4C;
}

/* Animated state */
.cs-main-fee-compare.animated .fee-bar.bank-bar {
    width: 100%;
}

.cs-main-fee-compare.animated .fee-bar.coinshot-bar {
    width: 36%;
}

.fee-amount {
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease 1s;
}

.cs-main-fee-compare.animated .fee-amount {
    opacity: 1;
}

.fee-row.coinshot .fee-amount {
    color: #fff;
    font-weight: 700;
}

.fee-label {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #999;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.4s ease 1s;
}

.cs-main-fee-compare.animated .fee-label {
    opacity: 1;
}

.fee-logo {
    height: 16px;
    width: auto;
}

.fee-logo-biz {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0F2A44;
}

.cs-main-fee-quote {
    margin-top: 60px;
    text-align: center;
}

.cs-main-fee-quote p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    color: #202020;
    position: relative;
    display: inline-block;
}

.cs-main-fee-quote .highlight {
    color: #00CC4C;
    position: relative;
}

.cs-main-fee-quote .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 204, 76, 0.2);
    border-radius: 2px;
}

/* --- Trust License Section --- */
.cs-main-trust {
    background: #0F2A44;
    padding: 100px 40px;
    text-align: center;
}

.cs-main-trust .cs-main-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cs-main-trust .section-en {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 8px;
}

.cs-main-trust .section-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 38px;
    color: #fff;
    margin-bottom: 12px;
}

.cs-main-trust .section-desc {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.cs-main-license-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.license-item {
    width: 226px;
    height: 172px;
    background: #0F2A44;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.license-icon {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.license-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.license-name,
.license-org {
    position: relative;
    z-index: 1;
}

.license-name {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 24px;
}

.license-org {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 20px;
    text-align: center;
}

/* --- User Reviews Section --- */
.cs-main-reviews {
    padding-top: 100px;
    padding-bottom: 100px;
}

.cs-main-review-list {
    max-width: 776px;
    margin: 48px auto 0;
}

.review-card {
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
    overflow: visible;
    min-height: 188px;
    position: relative;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    background: #F6F6F6;
    border-radius: 14px;
    z-index: 0;
}

.review-card:last-child {
    margin-bottom: 0;
}

.review-card .review-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: #C9DDEF;
}

.review-card .review-photo img {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 73%;
    height: auto;
    object-fit: contain;
}

/* Normal: photo left, content right — BG offset right */
.review-card:not(.reverse) {
    flex-direction: row;
}

.review-card:not(.reverse)::before {
    left: 70px;
    right: 0;
}

.review-card:not(.reverse) .review-photo {
    margin: 24px 0;
}

.review-card:not(.reverse) .review-content {
    padding: 50px 30px 50px 44px;
    position: relative;
    z-index: 1;
}

/* Reverse: content left, photo right — BG offset left */
.review-card.reverse {
    flex-direction: row-reverse;
}

.review-card.reverse::before {
    left: 0;
    right: 70px;
}

.review-card.reverse .review-photo {
    margin: 24px 0;
}

.review-card.reverse .review-content {
    padding: 50px 44px 50px 30px;
    position: relative;
    z-index: 1;
}

.review-content {
    flex: 1;
    text-align: left;
}

.review-role {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #3A3A3A;
    margin: 0 0 16px 0;
    line-height: normal;
}

.review-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #3A3A3A;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .cs-main-hero-image {
        width: 500px;
        height: 460px;
        right: -30px;
    }

    .cs-main-howto-content {
        gap: 40px;
    }

    .cs-main-howto-preview {
        flex: 0 0 480px;
    }

    .cs-main-howto-slides {
        width: 480px;
        height: 270px;
    }

    .cs-main-license-grid {
        gap: 12px;
    }

    .license-item {
        width: 200px;
    }
}

@media (max-width: 1024px) {
    .cs-main-hero-text h1 {
        font-size: 40px;
        line-height: 56px;
    }

    .cs-main-hero-image {
        width: 400px;
        height: 370px;
        right: -10px;
        top: 120px;
    }

    .cs-main-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-main-about .about-headline {
        font-size: 26px;
        line-height: 36px;
    }

    .cs-main-howto-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cs-main-howto-preview {
        flex: none;
        width: 100%;
        max-width: 586px;
    }

    .cs-main-howto-slides {
        width: 100%;
        height: auto;
        aspect-ratio: 586 / 330;
    }

    .cs-main-howto-steps {
        padding-top: 0;
    }

    .cs-main-howto-steps .step-item {
        justify-content: center;
    }

    .cs-main-howto-steps .step-desc {
        text-align: center;
    }

    .cs-main-fee-compare {
        max-width: 100%;
    }

    .cs-main-license-grid {
        flex-wrap: wrap;
        gap: 12px;
    }

    .license-item {
        width: calc(33.333% - 8px);
        min-width: 160px;
    }
}

@media (max-width: 1240px) {
    .cs-main-hero-inner {
        padding: 0 40px;
    }
}

@media (max-width: 1024px) {
    .cs-main-hero-bg-krw {
        width: 360px;
        height: 356px;
        left: -120px;
        top: 200px;
    }
    .cs-main-hero-bg-usd {
        width: 340px;
        height: 320px;
        right: -80px;
        top: 400px;
    }
    .cs-main-hero-bg-jpy {
        width: 250px;
        height: 249px;
        right: -110px;
        top: 280px;
    }
}

@media (max-width: 768px) {
    .cs-main-hero {
        height: auto;
        padding-bottom: 40px;
    }

    .cs-main-hero-bg {
        display: none;
    }

    .cs-main-hero-text {
        padding-top: 120px;
    }

    .cs-main-hero-text h1 {
        font-size: 32px;
        line-height: 44px;
    }

    .cs-main-hero-text .sub {
        font-size: 16px;
        line-height: 24px;
    }

    .cs-main-hero-image {
        position: relative;
        width: 100%;
        height: 300px;
        right: 0;
        top: 0;
        margin-top: 40px;
    }

    .cs-main-section {
        padding: 60px 20px;
    }

    .cs-main-features-grid {
        grid-template-columns: 1fr;
    }

    .cs-main-section .section-title {
        font-size: 24px;
        line-height: 32px;
    }

    .cs-main-about .about-headline {
        font-size: 22px;
        line-height: 32px;
    }

    .cs-main-howto {
        padding: 60px 20px;
    }

    .cs-main-howto-content {
        gap: 32px;
    }

    .cs-main-howto-steps .step-title {
        font-size: 22px;
        line-height: 30px;
    }

    .cs-main-fees {
        padding: 60px 20px;
    }

    .fee-icon {
        width: 70px;
        height: 70px;
    }

    .fee-icon img {
        width: 46px;
        height: 44px;
    }

    .fee-row.coinshot .fee-icon img {
        width: 54px;
        height: 58px;
    }

    .fee-bar-wrap {
        margin-left: -14px;
    }

    .fee-bar {
        padding-left: 24px;
    }

    .cs-main-fee-quote p {
        font-size: 22px;
        line-height: 32px;
    }

    .cs-main-trust {
        padding: 60px 20px;
    }

    .cs-main-trust .section-title {
        font-size: 24px;
        line-height: 32px;
    }

    .license-item {
        width: calc(50% - 8px);
        min-width: 140px;
        height: auto;
        padding: 20px 12px;
    }

    .cs-main-reviews {
        padding: 60px 20px;
    }

    .review-card {
        flex-direction: column !important;
        text-align: center;
        padding: 30px 20px;
        background: #F6F6F6;
        border-radius: 14px;
        overflow: hidden;
    }

    .review-card::before {
        display: none;
    }

    .review-card .review-photo {
        margin: 0 auto 20px !important;
    }

    .review-card .review-content,
    .review-card.reverse .review-content {
        padding: 0 !important;
        text-align: center;
    }

    .review-role {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cs-main-hero-buttons {
        flex-direction: column;
    }

    .cs-main-hero-buttons .btn-inquiry,
    .cs-main-hero-buttons .btn-start {
        min-width: auto;
    }

    .cs-main-howto-steps .step-title {
        font-size: 18px;
        line-height: 26px;
    }

    .cs-main-howto-steps .step-number {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .fee-row {
        flex-direction: row;
        align-items: center;
    }

    .fee-icon {
        width: 60px;
        height: 60px;
    }

    .fee-bar-wrap {
        flex: 1;
        margin-left: -12px;
    }

    .fee-bar {
        height: 48px;
        padding-left: 20px;
    }

    .license-item {
        width: 100%;
    }
}
