/* Base Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #F7F5F0;
    --text-light: #1A1A1A;
    --bg-dark: #0D0E10;
    --text-dark: #FFFFFF;
    --primary: #4ADE80;
    /* Brankit Point Neon Green */

    --font-sans: 'Pretendard', 'Inter', sans-serif;
}

/* Theme Switching System (Body attribute) */
body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: none;
}

.text-primary {
    color: var(--primary);
}

body[data-theme="dark"] {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Layout Helpers */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    container-type: inline-size;
}

.text-center {
    text-align: center;
}

.mb-100 {
    margin-bottom: 100px;
}

.mt-100 {
    margin-top: 100px;
}

.mt-40 {
    margin-top: 40px;
}

/* Custom Cursor */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
}

.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(120, 120, 120, 0.5);
    background-color: transparent;
    transition: transform 0.1s ease-out;
}

/* 다크모드 커서 반전 */
body[data-theme="dark"] .cursor-follower {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    padding: 18px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: transparent;
}

.btn-outline {
    border: 1px solid currentColor;
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-light);
}

.btn-solid {
    background-color: var(--primary);
    color: #000;
}

.btn-solid:hover {
    background-color: #111111;
    color: #FFF;
    transform: translateY(-3px);
}

body[data-theme="dark"] .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body[data-theme="dark"] .btn-outline:hover {
    background-color: white;
    color: black;
}

/* 0. GNB */
.gnb {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    /* Cuberto style logo blending */
    color: white;
}

.gnb .logo {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.gnb nav a {
    margin: 0 20px;
    font-size: 18px;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    height: 26px;
}

.gnb nav a:hover {
    opacity: 1;
}

.menu-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    height: 52px;
}

.menu-item span {
    display: block;
    height: 26px;
    line-height: 26px;
    transition: color 0.3s;
}

.menu-item .kr {
    color: var(--primary);
}

.gnb nav a:hover .menu-item {
    transform: translateY(-26px);
}

.btn-outline-magnetic {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-magnetic:hover {
    background-color: rgba(255, 255, 255, 1);
    color: black;
}

/* 1. Hero */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 100px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
}

.hero-title span {
    font-weight: 800;
}

.hero-subtitle {
    font-size: 33px;
    color: #444;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.rolling-wrap {
    height: 40px;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
}

body[data-theme="dark"] .rolling-wrap {
    color: var(--text-dark);
}

.rolling-list {
    display: flex;
    flex-direction: column;
    animation: rollingText 8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.rolling-list span {
    height: 40px;
    line-height: 40px;
    display: block;
}

@keyframes rollingText {

    0%,
    20% {
        transform: translateY(0);
    }

    25%,
    45% {
        transform: translateY(-40px);
    }

    50%,
    70% {
        transform: translateY(-80px);
    }

    75%,
    95% {
        transform: translateY(-120px);
    }

    100% {
        transform: translateY(0);
    }
}

.hero-showcase {
    width: 90%;
    max-width: 1400px;
    height: 65vh;
    margin-top: 80px;
    border-radius: 40px;
    background: #000;
    overflow: hidden;
    position: relative;
    /* GSAP 마우스오버 효과용 */
    cursor: pointer;
}

.showcase-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 40px;
}

.showcase-inner iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.15);
    pointer-events: none;
    border-radius: inherit;
    transition: transform 0.5s ease;
}

/* 16:9 비율 유지를 위한 대응 (Cover 효과) */
@media (min-aspect-ratio: 16/9) {
    .showcase-inner iframe {
        /* 너비가 더 넓을 때 -> 높이를 너비에 맞춰 키움 */
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .showcase-inner iframe {
        /* 높이가 더 길 때 -> 너비를 높이에 맞춰 키움 */
        width: 177.78vh;
    }
}

.showcase-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
}

.hero-showcase:hover .showcase-inner img {
    transform: scale(1.03);
    opacity: 1;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: background 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.play-btn span {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-showcase:hover .play-btn {
    background: var(--primary);
    color: #000;
    border-color: transparent;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 2. Intro */
.intro {
    padding: 100px 0;
    overflow: hidden;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* 3D Tilt & Organic Image */
.tilt-container {
    perspective: 1000px;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 10;
}

.tilt-element {
    transform-style: preserve-3d;
    will-change: transform;
}

.intro-image-wrap {
    width: 100%;
    border-radius: 60px 200px 100px 200px;
    /* 초기 형태 */
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: box-shadow 0.6s;
}

.intro-image-wrap:hover {
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.15);
}

.intro-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transform: scale(1.2);
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-image-wrap:hover img {
    filter: grayscale(0%);
}

/* Glassmorphism Badge */
.badge-wrapper {
    position: absolute;
    right: -60px;
    bottom: 30px;
    z-index: 5;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 260px;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    transform: translateZ(80px);
    /* 3D pop effect */
}

/* 다크 전환 시 자연스러움을 위해 약간 어두운 글래스 지원 */
body[data-theme="dark"] .glass-badge {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-badge .g-text {
    font-family: var(--font-sans);
    font-size: 75px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--primary);
}

.glass-badge .g-sub {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #000;
    margin-top: 10px;
}

body[data-theme="dark"] .glass-badge .g-sub {
    color: #FFF;
}

/* Text Side - Blur to Focus */
.text-side {
    position: relative;
}

.blur-target {
    filter: blur(15px);
    opacity: 0;
    transform: translateY(30px);
    will-change: filter, opacity, transform;
}

.text-side h2 {
    font-size: clamp(2.5rem, 4vw, 55px);
    margin-bottom: 30px;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.text-side p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Highlight Marker */
.highlight-wrapper {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.highlight-text {
    position: relative;
    z-index: 2;
}

.highlight-wrapper::after {
    content: "";
    position: absolute;
    left: -5px;
    bottom: 8px;
    width: calc(100% + 10px);
    height: 20px;
    background-color: var(--primary);
    z-index: 1;
    transform-origin: left center;
    transform: scaleX(0);
    /* 기본 상태는 안 보임 */
    /* Mix blend mode for highlighter effect */
    mix-blend-mode: multiply;
    border-radius: 2px;
}

.highlight-wrapper.is-highlighted::after {
    transform: scaleX(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
    /* 텍스트 노출 후 그어짐 */
}

body[data-theme="dark"] .highlight-wrapper::after {
    mix-blend-mode: screen;
    background-color: rgba(74, 222, 128, 0.3);
}

/* 2-1. Target Audience (Giant Hover Accordion) */
.audience-accordion {
    --ac-title: #111;
    --ac-text: #111;
    --ac-desc: #555;
    --ac-line: rgba(0, 0, 0, 0.1);
    --ac-stroke: rgba(0, 0, 0, 0.15);
    padding: 100px 0;
    background: transparent;
    color: var(--ac-text);
    border-bottom: 1px solid var(--ac-line);
    overflow: hidden;
    transition: all 0.8s ease;
}

body[data-theme="dark"] .audience-accordion {
    --ac-title: #fff;
    --ac-text: #fff;
    --ac-desc: #aaa;
    --ac-line: rgba(255, 255, 255, 0.1);
    --ac-stroke: rgba(255, 255, 255, 0.2);
}

.accordion-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--ac-line);
    margin-top: 60px;
    transition: border-color 0.8s ease;
}

.accordion-item {
    border-bottom: 1px solid var(--ac-line);
    transition: all 0.5s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.accordion-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    pointer-events: none;
    position: relative;
}

.accordion-head h3 {
    font-size: clamp(3rem, 7.8cqw, 7.5rem);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    color: var(--ac-title);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    line-height: 1;
    letter-spacing: -0.03em;
    z-index: 2;
    position: relative;
    white-space: nowrap;
}

.accordion-head h3 .ko-sub {
    font-size: 0.3em;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: inherit;
    opacity: 0.6;
    text-transform: none;
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
    margin-top: -5px;
}

/* Title Highlight Effect */
.accordion-head h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 35%;
    background-color: var(--primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.5;
    border-radius: 4px;
}

.accordion-item:hover .accordion-head h3::after {
    transform: scaleX(1);
}

/* Hover Image Style (Absolute & Overlap with numbers) */
.accordion-hover-img {
    position: absolute;
    right: 0;
    top: 50%;
    width: 350px;
    height: 200px;
    overflow: hidden;
    border-radius: 24px;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.accordion-hover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.accordion-head span {
    font-size: 1.5rem;
    font-weight: 300;
    color: #888;
    font-family: 'Inter', sans-serif;
    z-index: 2;
    position: relative;
}

.accordion-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, transform 0.6s ease;
    transform: translateY(-20px);
}

/* HOVER INTERACTIONS */
.accordion-item:hover .accordion-head h3 {
    color: var(--ac-title);
    transform: scale(1.02);
    /* 좌측 정렬 유지하며 미세하게 강조 */
    transform-origin: left center;
}

.accordion-item:hover .accordion-hover-img {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.accordion-wrapper:hover .accordion-item:not(:hover) .accordion-head h3 {
    color: transparent;
    -webkit-text-stroke: 1px var(--ac-stroke);
}

.accordion-item:hover .accordion-body {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
}

.accordion-item:hover {
    padding-bottom: 40px;
}

/* Mobile Optimization for Audience Section */
@media (max-width: 768px) {
    .audience-accordion {
        padding: 30px 0;
    }

    .audience-accordion h2 {
        font-size: 1.6rem !important;
        margin-bottom: 5px;
    }

    .accordion-wrapper {
        margin-top: 15px;
    }

    .accordion-head {
        padding: 35px 0;
    }

    .accordion-head h3 {
        font-size: 1.6rem !important;
    }

    .accordion-head span {
        font-size: 0.9rem;
    }

    .accordion-hover-img {
        width: 150px !important;
        height: 100px !important;
        right: 35px !important;
        border-radius: 12px !important;
    }

    .accordion-body {
        padding-top: 15px;
    }

    .accordion-body h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        line-height: 1.4 !important;
    }

    .accordion-body p {
        font-size: 0.85rem !important;
    }

    .accordion-item:hover {
        padding-bottom: 30px;
    }
}

/* 3-1. Portfolio Marquee Templates */
.portfolio {
    padding: 150px 0 50px;
    overflow: hidden;
}

.pt-150 {
    padding-top: 150px;
}

.section-title {
    font-size: 70px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 20px;
    color: #888;
    font-weight: 400;
    margin-bottom: 20px;
}

.mb-80 {
    margin-bottom: 80px;
}

.mt-60 {
    margin-top: 60px;
}

/* Marquee System */
.marquee-wrapper {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
    margin-left: calc(-50vw + 50%);
}

.marquee-track {
    display: flex;
    width: max-content;
    cursor: grab;
    user-select: none;
}

.marquee-track:active {
    cursor: grabbing;
}

.track-inner {
    display: flex;
    gap: 40px;
    margin-right: 40px;
}

.ptf-card {
    width: 450px;
    flex-shrink: 0;
    cursor: pointer;
}

.mockup {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #111;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.ptf-card.portrait .mockup {
    aspect-ratio: 9/16;
}

.mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.9;
    pointer-events: none;
    -webkit-user-drag: none;
}

.ptf-card:hover .mockup img,
.logo-card:hover .mockup img {
    transform: scale(1.06);
    opacity: 1;
}

.ptf-info {
    padding: 30px 10px;
}

.ptf-info h3 {
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 800;
    transition: color 0.3s;
}

.ptf-card:hover .ptf-info h3 {
    color: var(--primary);
}

/* Portfolio Overlay */
.hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 35px 30px;
    color: #FFF;
    pointer-events: none;
}

.ptf-card:hover .hover-overlay {
    opacity: 1;
}

.ptf-tag {
    font-size: 14px;
    font-weight: 700;
    background: var(--primary);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.hover-overlay h4 {
    font-size: 26px;
    font-weight: 800;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
    margin: 0;
}

.ptf-card:hover .ptf-tag,
.ptf-card:hover .hover-overlay h4 {
    transform: translateY(0);
}

/* 3-2 Logos Marquee */
.portfolio-logos {
    padding: 50px 0 150px;
    overflow: hidden;
}

.logo-track-inner {
    gap: 30px;
    margin-right: 30px;
}

.logo-card {
    width: 350px;
    flex-shrink: 0;
    cursor: pointer;
}

.logo-card .mockup.square {
    aspect-ratio: 1/1;
    border-radius: 20px;
}

.logo-info {
    padding: 20px 5px;
    text-align: center;
}

.logo-card h4 {
    font-size: 18px;
    color: #CCC;
    font-weight: 600;
    transition: color 0.3s;
}

.logo-card:hover h4 {
    color: var(--primary);
}

/* 4. Services */
.services {
    padding: 150px 0;
}

.grid-2-sticky {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 80px;
    align-items: start;
}

.sticky-side {
    position: sticky;
    top: 180px;
}

.sticky-side p {
    font-size: 20px;
    line-height: 1.65;
    color: #444;
    margin-top: 20px;
    word-break: keep-all;
}

.scroll-side {
    padding-bottom: 0px;
    position: relative;
}

/* 3D Stacking 로직 */
.svc-card {
    background: #FFF;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    transition: transform 0.5s ease;

    /* Sticky Stack! */
    position: sticky;
    transform-origin: top center;
}

.svc-card.idx-1 {
    top: 100px;
    z-index: 10;
}

.svc-card.idx-2 {
    top: 140px;
    z-index: 20;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.svc-card.idx-3 {
    top: 180px;
    z-index: 30;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.svc-card:hover {
    transform: translateY(-5px);
}

.svc-icon {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    background: #eee;
}

.svc-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
    transition: filter 0.3s, transform 0.8s ease;
}

.svc-card:hover .svc-icon img {
    filter: brightness(1.05);
    transform: scale(1.04);
}

.svc-card h3 {
    font-size: 34px;
    margin-bottom: 20px;
}

.svc-card p {
    font-size: 20px;
    color: #555;
    line-height: 1.7;
    word-break: keep-all;
}

/* 5. Process (72H Dashboard & Horizontal Track) */
.process {
    padding: 120px 0;
    position: relative;
    overflow: visible;
}

.process-dashboard {
    position: relative;
    /* Pinning 시 부모가 고정되므로 sticky는 제거하거나 relative로 변경 */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 40px;
    z-index: 1000;
    /* 카드가 아래로 지나가도록 높은 z-index 부여 */

    /* 배경색을 명시하여 뒤로 지나가는 카드가 겹쳐 보이지 않게 함 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
}

body[data-theme="dark"] .process-dashboard {
    background: var(--bg-dark);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.dash-left .section-title {
    font-size: clamp(2.5rem, 4.5vw, 55px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.dash-intro {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Horizontal Timeline */
.dash-right {
    display: flex;
    align-items: flex-end;
    gap: 60px;
}

.timeline-h-container {
    position: relative;
    width: 500px;
    height: 60px;
    /* Label 영역 확보 */
    display: flex;
    align-items: flex-end;
}

.timeline-h-line-base {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
}

body[data-theme="dark"] .timeline-h-line-base {
    background: rgba(255, 255, 255, 0.1);
}

.timeline-h-line-active {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0%;
    /* JS 제어 */
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    z-index: 2;
}

.timeline-h-nodes {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 3;
    padding-bottom: 1px;
    /* Line에 맞춤 */
}

.h-node {
    width: 18px;
    height: 18px;
    background: var(--bg-light);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

body[data-theme="dark"] .h-node {
    background: var(--bg-dark);
    border-color: rgba(255, 255, 255, 0.2);
}

.h-node.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.1);
}

.h-node span {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    transition: color 0.4s;
}

.h-node.active span {
    color: var(--text-light);
}

body[data-theme="dark"] .h-node.active span {
    color: var(--text-dark);
}

/* Elapsed Time Counter */
.elapsed-time {
    text-align: right;
}

.elapsed-time .label {
    font-size: 11px;
    font-weight: 800;
    color: #aaa;
    letter-spacing: 0.1em;
    display: block;
}

.elapsed-time .counter {
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    margin-top: 5px;
}

.elapsed-time .counter .unit {
    font-size: 20px;
    color: var(--primary);
    margin-left: 4px;
}

/* Horizontal Track Area */
.process-track-wrapper {
    width: 100%;
    overflow: visible;
}

.process-track {
    display: flex;
    gap: 40px;
    padding-bottom: 50px;
    width: max-content;
}

.step-card-wrap {
    width: 480px;
    flex-shrink: 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.03);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="dark"] .glass-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.step-icon {
    color: var(--primary);
    margin-bottom: 25px;
}

.step-time-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

body[data-theme="dark"] .step-time-tag {
    background: rgba(255, 255, 255, 0.1);
}

.step-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

body[data-theme="dark"] .step-card p {
    color: #aaa;
}

.step-image {
    width: 100%;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover .step-image img {
    transform: scale(1.05);
}

/* ====================================================================
   Responsive Optimization (Combined & Clean)
   ==================================================================== */

@media (max-width: 1024px) {
    .process-dashboard {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .timeline-h-container {
        width: 100%;
    }

    .dash-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {

    /* 1. GNB Mobile */
    .gnb {
        padding: 15px 5% !important;
    }

    .gnb nav {
        display: none !important;
    }

    .gnb .logo {
        font-size: 20px !important;
        margin: 0 !important;
    }

    .gnb .btn-group {
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
    }

    .gnb .btn-group {
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
    }

    .gnb .primary-cta {
        padding: 8px 14px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        border: 1px solid currentColor !important;
        border-radius: 50px !important;
        background: transparent !important;
        width: auto !important;
    }

    /* 2. Portfolio & Process & Reviews */
    .ptf-card,
    .r-card {
        width: 280px !important;
        min-width: 280px !important;
        margin-bottom: 20px;
    }

    .r-card {
        padding: 25px !important;
        border-radius: 20px !important;
    }

    .r-text {
        font-size: 18px !important;
    }

    .stars {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }

    .logo-card {
        width: 180px !important;
        min-width: 180px !important;
    }

    .track-inner {
        gap: 15px !important;
        margin-right: 15px !important;
    }

    .process {
        padding: 10px 0 !important;
        z-index: 10;
        margin-top: -20px !important;
    }

    .process-dashboard {
        top: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        padding: 15px 0 !important;
        background: inherit;
        z-index: 10;
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .dash-left {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .dash-left .section-title {
        font-size: 28px !important;
        line-height: 1.1 !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
    }

    .dash-intro {
        font-size: 14px !important;
        margin: 0 !important;
        line-height: 1.4;
        width: 100% !important;
        text-align: left !important;
    }

    .dash-right {
        width: 100% !important;
        margin-top: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .timeline-h-container {
        width: 100% !important;
        margin: 0 !important;
        height: 25px !important;
    }

    .h-node span {
        font-size: 9px !important;
        bottom: 20px !important;
    }

    .elapsed-time {
        width: 100% !important;
        text-align: left !important;
        margin-top: 5px !important;
    }

    .elapsed-time .counter {
        font-size: 22px !important;
        margin: 0 !important;
    }

    .process-track-wrapper {
        margin-top: 10px !important;
    }

    .step-card-wrap {
        width: 300px !important;
    }

    .glass-card {
        padding: 20px !important;
        border-radius: 20px !important;
    }

    .step-card h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .step-card p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .step-image {
        height: 170px;
    }

    /* 3. Hero & Layout General */
    .container {
        padding: 0 20px !important;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 30px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    .hero-subtitle {
        font-size: 13px !important;
        gap: 5px !important;
        width: 100% !important;
    }

    .rolling-wrap {
        height: 20px;
    }

    .rolling-list span {
        height: 20px;
        line-height: 20px;
    }

    .section-title {
        font-size: 28px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .grid-2,
    .grid-2-sticky,
    .portfolio-grid,
    .review-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
    }

    .col-right {
        margin-top: 0;
    }

    .svc-card.offset-right {
        margin-left: 0;
        margin-right: 0;
    }

    .sticky-side {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .hero-showcase {
        height: 45vh;
    }

    .play-btn {
        width: 70px;
        height: 70px;
    }

    .scroll-indicator {
        display: none !important;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .f-links a,
    .f-socials a {
        margin: 0 10px;
    }
}

/* ====================================================================
   Footer & Additional Sections
   ==================================================================== */

.footer {
    padding: 120px 0 50px;
    position: relative;
    overflow: hidden;
}

.footer-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 100%, rgba(74, 222, 128, 0.15), transparent 60%);
}

.massive-title {
    font-size: clamp(2.5rem, 6vw, 120px);
    white-space: normal;
    word-break: keep-all;
    font-family: var(--font-sans);
    font-weight: 800;
    opacity: 0.9;
    margin-bottom: 40px;
}

.huge-btn {
    font-size: clamp(3rem, 8vw, 130px);
    font-weight: 800;
    font-family: var(--font-sans);
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
    border: none;
    mix-blend-mode: difference;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.huge-btn:hover {
    color: var(--primary);
    text-shadow: 0 0 60px rgba(74, 222, 128, 0.6);
    transform: scale(1.02);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 150px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    font-size: 18px;
    color: #888;
    font-weight: 600;
}

.f-links a,
.f-socials a {
    margin-left: 30px;
    transition: color 0.3s;
}

.f-links a:hover,
.f-socials a:hover {
    color: white;
}

/* Advanced Interactions */
.reveal-text {
    visibility: visible;
}

.word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.word-inner {
    display: inline-block;
    transform: translateY(110%);
}

.liquid-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary);
    color: #000;
    z-index: 9999;
    clip-path: circle(0% at 50% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.liquid-modal.is-active {
    pointer-events: all;
}

.modal-close-btn {
    position: absolute;
    top: 40px;
    right: 5vw;
    font-size: 60px;
    font-weight: 300;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    transition: transform 0.3s;
}

.modal-close-btn:hover {
    transform: rotate(90deg);
}

.modal-content {
    max-width: 800px;
    text-align: center;
    width: 90%;
}

.modal-content h2 {
    font-size: clamp(3rem, 6vw, 90px);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.modal-content p {
    font-size: 22px;
    margin-bottom: 60px;
    font-weight: 500;
}

.vip-form .input-group {
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.vip-form input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 15px 0;
    color: #000;
    outline: none;
    border-radius: 0;
}

.vip-form input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

.vip-form input:focus {
    border-bottom-color: #000;
}

.vip-form .btn-solid {
    background: #000;
    color: var(--primary);
    font-size: 20px;
    padding: 25px 60px;
    border-radius: 50px;
}

.vip-form .btn-solid:hover {
    background: #222;
    transform: translateY(0);
    color: #FFF;
}

/* About & Reviews & FAQ */
.about {
    padding: 150px 0;
}

.about-image-wrap {
    width: 100%;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-badge {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

body[data-theme="dark"] .tech-badge {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
}

.reviews {
    padding: 100px 0 150px;
    overflow: hidden;
}

.review-marquee {
    margin-top: 60px;
}

.r-card {
    width: 400px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body[data-theme="dark"] .r-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.stars {
    color: var(--primary);
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.r-text {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    font-style: normal;
}

body[data-theme="dark"] .r-text {
    color: #CCC;
}

.r-author-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.r-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.r-author {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    margin: 0;
}

.r-author span {
    font-size: 13px;
    font-weight: 400;
    color: #888;
    display: block;
}

body[data-theme="dark"] .r-author {
    color: #FFF;
}

.faq {
    padding: 150px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

body[data-theme="dark"] .faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: inherit;
    padding: 25px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    transition: all 0.3s;
    border-radius: 15px;
    margin-bottom: 5px;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.04);
}

body[data-theme="dark"] .faq-item.active .faq-question {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question .icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.4s;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer p {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    padding: 10px 20px 25px;
}

body[data-theme="dark"] .faq-answer p {
    color: #AAA;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scroll-indicator li {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    cursor: pointer;
}

.scroll-indicator .dot-label {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    color: var(--text-light);
    white-space: nowrap;
    pointer-events: none;
}

body[data-theme="dark"] .scroll-indicator .dot-label {
    color: var(--text-dark);
}

.scroll-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.3;
    transition: all 0.3s;
    color: var(--text-light);
}

body[data-theme="dark"] .scroll-indicator .dot {
    color: var(--text-dark);
}

.scroll-indicator li:hover .dot-label,
.scroll-indicator li.active .dot-label {
    opacity: 1;
    transform: translateX(0);
}

.scroll-indicator li:hover .dot,
.scroll-indicator li.active .dot {
    opacity: 1;
    transform: scale(1.5);
    color: var(--primary);
}

/* ==========================================================================
   Price Detail Modal & Snapshot Grid
   ========================================================================== */
.price-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 16, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.price-modal-container {
    background: var(--bg-light);
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(50px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 60px 40px;
    color: var(--text-light);
}

.price-modal-overlay.active .price-modal-container {
    transform: translateY(0);
}

.price-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #000;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.price-modal-close:hover {
    opacity: 1;
}

/* Scrollbar for Modal */
.price-modal-container::-webkit-scrollbar {
    width: 8px;
}

.price-modal-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.snapshot-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    color: #FFF;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.snapshot-card:hover {
    transform: translateY(-5px);
    border-color: #FFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.snapshot-card.featured {
    background: #111;
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.15);
    z-index: 2;
    position: relative;
}

.snapshot-card.featured:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 222, 128, 0.8);
    box-shadow: 0 15px 40px rgba(74, 222, 128, 0.25);
}

.snapshot-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #AAA;
}

.snapshot-tag {
    background: #444;
    padding: 6px 12px;
    border-radius: 20px;
    color: #FFF;
}

.snapshot-card.featured .snapshot-tag {
    background: var(--primary);
    color: #000;
}

.snapshot-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #FFF;
}

.snapshot-card.featured h3 {
    color: var(--primary);
}

.snapshot-target {
    font-size: 1.125rem;
    color: #AAA;
    margin-bottom: 5px;
}

.snapshot-desc {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 30px;
}

.snapshot-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.snapshot-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: #CCC;
    font-size: 1.125rem;
    line-height: 1.5;
}

.snapshot-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.snapshot-price {
    margin-bottom: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.original-price {
    font-size: 1.6rem;
    color: #AAA;
    font-weight: 600;
}

.discount-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFF;
    line-height: 1;
    letter-spacing: -0.03em;
}

.snapshot-card.featured .discount-price {
    color: var(--primary);
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
}

.snapshot-card .btn {
    width: 100%;
    text-align: center;
    padding: 18px 0;
}

.snapshot-card .btn-outline {
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.4);
}

.snapshot-card .btn-solid:hover {
    background-color: #FFF;
    color: #111;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.snapshot-card .btn-outline:hover {
    background-color: #FFF;
    color: #000;
}

@media (max-width: 1024px) {
    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .price-modal-container {
        padding: 40px 20px;
    }

    .snapshot-card {
        padding: 30px 20px;
    }
}

/* Moved from index-v4-final.html */

body.page-v3-improved {
    overflow-x: visible;
}

.page-v3-improved .gnb {
    mix-blend-mode: normal;
    color: #111;
    background: rgba(247, 245, 240, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.page-v3-improved header.gnb[style*="z-index: 1001"] {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.page-v3-improved .gnb nav a {
    color: currentColor;
}

.page-v3-improved .btn-outline-magnetic {
    color: #111;
    border-color: rgba(17, 17, 17, 0.18);
    padding: 10px 24px !important;
    font-size: 14px !important;
    border-radius: 30px !important;
    min-width: 120px !important;
    line-height: normal !important;
}

.page-v3-improved .btn-outline-magnetic:hover {
    background: #111;
    color: #fff;
}

body[data-theme="dark"].page-v3-improved .gnb {
    color: #fff;
    background: rgba(13, 14, 16, 0.78);
}

body[data-theme="dark"].page-v3-improved .btn-outline-magnetic {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    padding: 10px 24px !important;
    font-size: 14px !important;
    border-radius: 30px !important;
    min-width: 120px !important;
    line-height: normal !important;
}

.page-v3-improved .hero-title .word-mask {
    overflow: visible;
}

.page-v3-improved .hero-title {
    word-break: keep-all;
}

.page-v3-improved .hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.trust-strip {
    padding: 0 0 72px;
    margin-top: -18px;
    position: relative;
    z-index: 2;
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.trust-strip-card {
    padding: 40px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    overflow: hidden;
}

.trust-strip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.trust-strip-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.trust-strip-card:hover::before {
    transform: scaleX(1);
}

.trust-strip-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.trust-strip-card .card-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #888;
}

.trust-strip-card .card-index {
    font-size: 42px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1;
    color: #cccccc;
}

.trust-strip-card strong {
    display: block;
    margin-bottom: 14px;
    color: #111;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.trust-strip-card p {
    color: #555;
    font-size: 18px;
    line-height: 1.65;
    word-break: keep-all;
}

body[data-theme="dark"] .trust-strip-card {
    background: #18181B;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .trust-strip-card:hover {
    background: #222222;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
}

body[data-theme="dark"] .trust-strip-card .card-index {
    color: #444;
}

body[data-theme="dark"] .trust-strip-card strong {
    color: #fff;
}

body[data-theme="dark"] .trust-strip-card p {
    color: #aaa;
}

.page-v3-improved .hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 18px;
    margin-bottom: 28px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 999px;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-v3-improved .marquee-wrapper {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
}

.page-v3-improved .portfolio-logos,
.page-v3-improved .portfolio,
.page-v3-improved .reviews,
.page-v3-improved .process {
    overflow-x: hidden;
}

.page-v3-improved .featured-review-card {
    max-width: 920px;
    margin: 0 auto 54px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.page-v3-improved .featured-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.page-v3-improved .featured-review-card blockquote {
    margin: 0;
    color: #111;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.page-v3-improved .featured-review-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 18px;
    line-height: 1.55;
}

.page-v3-improved .featured-review-foot strong {
    display: block;
    color: #111;
    font-size: 16px;
}

.page-v3-improved .featured-review-result {
    color: var(--primary);
    font-weight: 900;
    white-space: nowrap;
}

/* Featured Review Card - Dark Mode (Glassmorphism) */
body[data-theme="dark"].page-v3-improved .featured-review-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

body[data-theme="dark"].page-v3-improved .featured-review-card blockquote {
    color: #FFFFFF;
}

body[data-theme="dark"].page-v3-improved .featured-review-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAAAAA;
}

body[data-theme="dark"].page-v3-improved .featured-review-foot strong {
    color: #EEEEEE;
}


.page-v3-improved .modal-content {
    max-width: 760px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.page-v3-improved .footer-cta-copy {
    max-width: 620px;
    margin: -10px auto 44px;
    color: #aaa;
    font-size: 18px;
    line-height: 1.65;
}

.page-v3-improved .vip-form.improved-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    text-align: left;
}

.page-v3-improved .vip-form.improved-form .input-group {
    margin: 0;
    border-bottom: 0;
}

.page-v3-improved .vip-form.improved-form .full {
    grid-column: 1 / -1;
}

.page-v3-improved .vip-form.improved-form label {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-size: 13px;
    font-weight: 800;
}

.page-v3-improved .vip-form.improved-form input,
.page-v3-improved .vip-form.improved-form select,
.page-v3-improved .vip-form.improved-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 15px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    color: #111;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.page-v3-improved .vip-form.improved-form textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.55;
}

.page-v3-improved .vip-form.improved-form input:focus,
.page-v3-improved .vip-form.improved-form select:focus,
.page-v3-improved .vip-form.improved-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

.page-v3-improved .form-helper,
.page-v3-improved .form-note {
    grid-column: 1 / -1;
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.55;
}

.page-v3-improved .vip-form.improved-form .btn {
    grid-column: 1 / -1;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .page-v3-improved .gnb {
        padding: 15px 5%;
    }

    .page-v3-improved .gnb .logo {
        font-size: 20px;
    }

    .page-v3-improved .gnb .btn {
        min-width: 96px;
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .page-v3-improved .hero {
        min-height: auto;
        padding-top: 118px;
    }

    .page-v3-improved .hero-title {
        font-size: clamp(2.45rem, 10vw, 3.6rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.04em;
        margin-bottom: 22px;
    }

    .page-v3-improved .hero-kicker {
        min-height: 32px;
        padding: 0 14px;
        margin-bottom: 18px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    .page-v3-improved .hero-subtitle {
        font-size: 16px !important;
        line-height: 1.55;
        gap: 8px;
        margin-bottom: 28px;
    }

    .page-v3-improved .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .page-v3-improved .hero-cta-group .btn {
        width: 100%;
        min-height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
    }

    .page-v3-improved .hero-showcase,
    .page-v3-improved .showcase-inner {
        max-width: 100%;
        overflow: hidden;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .page-v3-improved .showcase-inner {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .page-v3-improved .showcase-inner iframe {
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        position: absolute !important;
        object-fit: cover;
    }

    .trust-strip {
        padding: 34px 0 58px;
        margin-top: 0;
    }

    .trust-strip-grid,
    .page-v3-improved .vip-form.improved-form {
        grid-template-columns: 1fr;
    }

    .trust-strip-card {
        padding: 20px;
    }

    .page-v3-improved .featured-review-card {
        margin-bottom: 42px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .page-v3-improved .featured-review-head,
    .page-v3-improved .featured-review-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-v3-improved .featured-review-result {
        white-space: normal;
    }

    .page-v3-improved .intro-image-wrap img {
        width: 100%;
    }

    .page-v3-improved .badge-wrapper {
        right: 12px !important;
        width: 160px;
        height: 160px;
    }

    .page-v3-improved .glass-badge {
        width: 160px;
        height: 160px;
    }

    .page-v3-improved .glass-badge .g-text {
        font-size: 44px;
    }

    .page-v3-improved .glass-badge .g-sub {
        font-size: 13px;
    }

    .page-v3-improved .process-track-wrapper {
        overflow: hidden;
    }

    /* Mobile Centering Rules */
    .intro .text-side,
    .services .sticky-side {
        text-align: center !important;
    }

    .intro .btn-group,
    .services .btn-group {
        justify-content: center !important;
    }

    .audience-accordion>.container>div:first-child {
        text-align: center !important;
    }

    .svc-card {
        text-align: center !important;
    }

    .svc-icon {
        margin: 0 auto 20px auto !important;
    }

    .svc-card h3 {
        justify-content: center !important;
    }

    .dash-intro,
    .section-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .dash-left .section-title {
        text-align: center !important;
    }


    .section-title,
    .section-subtitle {
        text-align: center;
    }

    .page-v3-improved .modal-content {
        width: 92%;
        max-height: calc(100dvh - 96px);
        padding-bottom: 24px;
    }

    .page-v3-improved .modal-close-btn {
        top: 26px;
        right: 18px;
        font-size: 42px;
    }

    .page-v3-improved .modal-content h2 {
        font-size: 32px !important;
        line-height: 1.14 !important;
        letter-spacing: -0.02em !important;
        max-width: 290px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 14px;
        word-break: keep-all;
    }

    .page-v3-improved .modal-content p {
        font-size: 18px;
        line-height: 1.55;
        margin-bottom: 28px;
        word-break: keep-all;
    }
}

/* ==========================================================================
   4. Services Section (Premium 3-Column Grid)
   ========================================================================== */
.services {
    padding: 120px 0;
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color 0.8s ease, color 0.8s ease;
}

body[data-theme="dark"] .services {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* Services Intro Wrap (Intro Area with Image) */
.services-intro-wrap {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.services-intro-text .section-kicker {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.services-intro-visual .intro-img-box {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.services-intro-visual .intro-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-intro-wrap:hover .intro-img-box img {
    transform: scale(1.05);
}

/* Service Grid (3 Columns) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

/* Premium Glassmorphism Card Style */
.premium-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="dark"] .premium-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.premium-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(74, 222, 128, 0.12);
}

body[data-theme="dark"] .premium-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(74, 222, 128, 0.2);
}

/* Card Visual Header */
.premium-card .card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.premium-card .card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover .card-visual img {
    transform: scale(1.06);
}

/* Badges */
.premium-card .card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 13px;
    font-weight: 700;
    background: #FFFFFF;
    color: #1A1A1A;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.premium-card .badge-group {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.premium-card .badge-group .card-badge {
    position: static;
}

.premium-card .card-badge.recommended {
    background: var(--primary);
    color: #000000;
}

.premium-card .card-badge.premium {
    background: #111111;
    color: #FFFFFF;
}

body[data-theme="dark"] .premium-card .card-badge.premium {
    background: #FFFFFF;
    color: #111111;
}

/* Card Body */
.premium-card .card-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.premium-card .card-target {
    font-size: 13px;
    font-weight: 700;
    color: #777;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

body[data-theme="dark"] .premium-card .card-target {
    color: #aaa;
}

.premium-card .card-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.03em;
    margin-bottom: 15px;
}

body[data-theme="dark"] .premium-card .card-title {
    color: var(--text-dark);
}

.premium-card .card-intro {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 30px;
    word-break: keep-all;
}

body[data-theme="dark"] .premium-card .card-intro {
    color: #ccc;
}

/* Specs (Bullets) */
.premium-card .card-spec-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

body[data-theme="dark"] .premium-card .card-spec-title {
    color: var(--text-dark);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.premium-card .card-specs {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.premium-card .card-specs li {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    word-break: keep-all;
}

body[data-theme="dark"] .premium-card .card-specs li {
    color: #bbb;
}

.premium-card .card-specs li::before {
    content: "•";
    color: var(--primary);
    font-weight: 900;
    position: absolute;
    left: 5px;
    top: 0;
}

.premium-card .card-specs li.spec-highlight {
    font-weight: 700;
    color: var(--text-light);
}

body[data-theme="dark"] .premium-card .card-specs li.spec-highlight {
    color: var(--text-dark);
}

/* Card Hover Accent - Text color & Bold */
.premium-card:hover .card-specs li {
    color: #000;
    font-weight: 600;
}

body[data-theme="dark"] .premium-card:hover .card-specs li {
    color: #fff;
    font-weight: 600;
}

.premium-card:hover .card-specs li.spec-highlight {
    color: var(--primary);
    font-weight: 800;
}

.premium-card:hover .card-intro {
    color: #000;
    font-weight: 500;
}

body[data-theme="dark"] .premium-card:hover .card-intro {
    color: #fff;
    font-weight: 500;
}

/* Keywords (SEO tags) */
.premium-card .card-seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.premium-card .card-seo-keywords span {
    font-size: 11px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.04);
    color: #666;
    padding: 4px 10px;
    border-radius: 50px;
}

body[data-theme="dark"] .premium-card .card-seo-keywords span {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

.premium-card:hover .card-seo-keywords span {
    background: rgba(74, 222, 128, 0.15);
    color: #111;
}

body[data-theme="dark"] .premium-card:hover .card-seo-keywords span {
    background: rgba(74, 222, 128, 0.2);
    color: #fff;
}

/* Services CTA Wrap */
.services-cta-wrap {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 32px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
}

body[data-theme="dark"] .services-cta-wrap {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.services-cta-wrap .cta-message {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 30px;
    word-break: keep-all;
}

body[data-theme="dark"] .services-cta-wrap .cta-message {
    color: var(--text-dark);
}

.services-cta-wrap .cta-btn-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Optimization for Services */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .services-grid .premium-card.idx-3 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }

    .services-intro-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .services-grid .premium-card.idx-3 {
        grid-column: span 1;
    }

    .services-intro-text h2 {
        font-size: 2.2rem !important;
    }

    .services-intro-text p {
        font-size: 1rem !important;
    }

    .premium-card .card-body {
        padding: 30px;
    }

    .premium-card .card-title {
        font-size: 24px;
    }

    .services-cta-wrap {
        padding: 40px 20px;
    }

    .services-cta-wrap .cta-message {
        font-size: 16px;
    }
}

/* 모바일 터치 영역 사용성 개선 (최소 터치 반경 44px 이상 확보) */
@media (max-width: 768px) {
    /* GNB 메뉴 항목 터치 타겟 확대 */
    .gnb nav a {
        padding: 10px 14px;
        margin: 0 !important;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 하단 푸터 앵커 터치 타겟 확대 */
    .f-links a, 
    .f-socials a {
        padding: 12px;
        display: inline-block;
        min-height: 44px;
        min-width: 44px;
    }
    
    /* FAQ 질문 영역 터치 확대 */
    .faq-question {
        padding-top: 15px;
        padding-bottom: 15px;
        min-height: 48px;
    }
    
    /* 모달 닫기 버튼 및 일반 X 버튼 터치 확대 */
    .price-modal-close, 
    .modal-close-btn {
        width: 44px;
        height: 44px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   Phase 4: Terms & Privacy Modal Styles
   ========================================================================== */
#terms-modal .price-modal-container {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transition: background-color 0.8s ease, color 0.8s ease;
}

body[data-theme="dark"] #terms-modal .price-modal-container {
    background-color: #141517;
    color: #f7f5f0;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

#terms-modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    font-family: var(--font-sans);
    color: #111;
}

body[data-theme="dark"] #terms-modal-title {
    color: #ffffff;
}

#terms-modal-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: var(--font-sans);
}

body[data-theme="dark"] #terms-modal-body {
    color: #ccc;
}

/* 스크롤바 디자인 */
#terms-modal .price-modal-container::-webkit-scrollbar {
    width: 6px;
}

#terms-modal .price-modal-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

body[data-theme="dark"] #terms-modal .price-modal-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#terms-modal-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    overflow-y: auto;
    padding-right: 15px;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: var(--font-sans);
}

body[data-theme="dark"] #terms-modal-body {
    color: #ccc;
}

#terms-modal .terms-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 9999 !important;
    color: #000000 !important;
    opacity: 0.5;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto !important;
    transition: opacity 0.3s ease;
}

#terms-modal .terms-modal-close:hover {
    opacity: 1;
}

body[data-theme="dark"] #terms-modal .terms-modal-close {
    color: #ffffff !important;
}

/* 스크롤바 디자인 */
#terms-modal-body::-webkit-scrollbar {
    width: 6px;
}

#terms-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

body[data-theme="dark"] #terms-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#terms-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

body[data-theme="dark"] #terms-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

#terms-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    #terms-modal .price-modal-container {
        width: 92%;
        height: 80vh;
        max-height: 80vh;
    }
    
    #terms-modal .terms-modal-close {
        top: 20px;
        right: 20px;
        font-size: 36px;
    }
    
    #terms-modal-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    #terms-modal-body {
        font-size: 0.85rem;
        line-height: 1.6;
        padding-right: 5px;
    }
}

/* ==========================================================================
   Header Action Group (Hamburger + CTA Button)
   ========================================================================== */
.header-action-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==========================================================================
   Mobile GNB (Hamburger Menu)
   ========================================================================== */
.mobile-menu-btn {
    display: none; /* Desktop hidden */
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1005;
    padding: 0;
    pointer-events: auto;
}

.mobile-menu-btn .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #111;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-btn .bar:nth-child(1) { top: 0; }
.mobile-menu-btn .bar:nth-child(2) { top: 11px; }
.mobile-menu-btn .bar:nth-child(3) { bottom: 0; }

body[data-theme="dark"] .mobile-menu-btn .bar { background: #fff; }

/* Pointer events / mix-blend-mode for the top layer header */
header.gnb[style*="mix-blend-mode"] .mobile-menu-btn .bar { background: var(--primary); }

@media (max-width: 1024px) {
    /* Show Hamburger */
    .mobile-menu-btn { display: block; }
    
    /* Header Action Group Mobile Layout */
    .header-action-group {
        gap: 12px;
    }
    
    /* Show CTA Button in Mobile Header but resize it */
    header.gnb .btn-group {
        display: block;
    }
    header.gnb .btn-group .btn {
        padding: 6px 14px !important;
        font-size: 13px !important;
        height: 36px !important;
        line-height: 22px !important;
        border-radius: 30px !important;
    }

    /* Hide Desktop Nav in Mobile */
    header.gnb nav {
        display: none;
    }
    /* Mobile Overlay Menu Styles (Independent Component) */
    #mobile-overlay-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        z-index: 999999 !important; /* Force to absolute top */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 80px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        overflow-y: auto;
        padding-bottom: 40px;
    }
    body[data-theme="dark"] #mobile-overlay-menu {
        background: rgba(17, 17, 17, 0.98) !important;
    }
    #mobile-overlay-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 40px;
        background: none;
        border: none;
        color: #111;
        cursor: pointer;
        line-height: 1;
        z-index: 10;
    }
    body[data-theme="dark"] .mobile-menu-close { color: #fff; }
    
    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
    }
    .mobile-nav-list a {
        display: inline-block;
        text-align: center;
        text-decoration: none;
    }
    .mobile-nav-list a .eng {
        display: block;
        font-size: 2.2rem;
        font-weight: 800;
        font-family: 'Inter', sans-serif;
        color: #111;
        line-height: 1.1;
    }
    .mobile-nav-list a .kr {
        display: block;
        font-size: 0.95rem;
        font-weight: 500;
        color: #777;
        margin-top: 4px;
    }
    body[data-theme="dark"] .mobile-nav-list a .eng { color: #fff; }
    body[data-theme="dark"] .mobile-nav-list a .kr { color: #aaa; }
    
    .mobile-btn-group {
        margin-top: 40px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    header.gnb.menu-opened .mobile-menu-btn .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    header.gnb.menu-opened .mobile-menu-btn .bar:nth-child(2) {
        opacity: 0;
    }
    header.gnb.menu-opened .mobile-menu-btn .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}

/* 모달창 스크롤바 숨기기 (기능은 유지) */
.modal-content::-webkit-scrollbar,
.liquid-modal::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.modal-content,
.liquid-modal {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}