/* ===== landing-features.css ===== */
/* 고민 슬라이더, 기능 블록, 목업(아이폰/PC), 비디오 시퀀스 */

/* ===== Pain Points - Card Slider ===== */
.pain-points {
    background: var(--bg-white);
    overflow: hidden;
}

.pain-slider-container {
    position: relative;
    margin: 0 -24px;
    padding: 0 80px;
}

.pain-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pain-slider::-webkit-scrollbar {
    display: none;
}

.pain-card {
    flex: 0 0 420px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: left;
    scroll-snap-align: start;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.pain-card:first-child {
    margin-left: 0;
}

.pain-card:last-child {
    margin-right: 40px;
}

.pain-card:hover {
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.3);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    background: var(--bg-white);
}

.pain-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.5;
    word-break: keep-all;
}

.pain-detail {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 28px;
    flex-grow: 1;
    word-break: keep-all;
}

.pain-source {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Slider Navigation 버튼 */
.slider-nav {
    display: none;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    z-index: 10;
    font-size: 1.1rem;
}

.slider-nav-btn.slider-prev {
    left: 20px;
}

.slider-nav-btn.slider-next {
    right: 20px;
}

.slider-nav-btn:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.05);
}

.slider-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-nav-btn:disabled:hover {
    background: var(--bg-white);
    color: var(--text-body);
    border-color: var(--border);
    transform: translateY(-50%);
    box-shadow: var(--shadow);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* ===== Features ===== */
.features {
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse>* {
    direction: ltr;
}

.feature-icon-box {
    display: inline-flex;
    padding: 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-content>p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.feature-list li {
    display: grid;
    grid-template-columns: 20px 140px 1fr;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: var(--text-body);
}

.feature-list li i {
    color: var(--primary);
}

.feature-list li strong {
    white-space: nowrap;
}

.feature-list li span {
    color: var(--text-muted);
}

/* Feature Image Wrapper */
.feature-image-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    transition: transform 0.3s ease;
}

.feature-image-wrapper:hover {
    transform: translateY(-5px);
}

/* 목업 포함 시 프레임 제거 */
.feature-image-wrapper.no-frame,
.feature-image-wrapper:has(.iphone-mockup) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 20px;
}

.feature-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.placeholder-content {
    text-align: center;
    color: #d1d5db;
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

.placeholder-content p {
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== iPhone Mockup ===== */
.iphone-mockup {
    position: relative;
    width: 260px;
    height: 530px;
    background: #000;
    border-radius: 44px;
    padding: 4px;
    box-shadow:
        inset 0 0 0 1px #222,
        0 20px 40px -10px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.iphone-notch {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.iphone-notch::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.1);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    padding: 8px;
}

.iphone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ===== PC Mockup ===== */
.pc-mockup {
    width: 320px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.pc-mockup.large {
    width: 600px;
}

.pc-toolbar {
    height: 28px;
    background: #2d2d2d;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.pc-buttons {
    display: flex;
    gap: 6px;
}

.pc-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.pc-btn.red { background: #ff5f57; }
.pc-btn.yellow { background: #febc2e; }
.pc-btn.green { background: #28c840; }

.pc-screen {
    background: #fff;
}

.pc-screen video {
    width: 100%;
    display: block;
}

/* ===== Video Sequence Layout ===== */
.feature-image-wrapper.video-sequence {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.video-sequence .pc-mockup,
.video-sequence .iphone-mockup {
    position: absolute;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-sequence .pc-mockup.active,
.video-sequence .iphone-mockup.active {
    opacity: 1;
    transform: scale(1);
}

.video-sequence .iphone-mockup {
    width: 260px;
    height: 530px;
}

.video-sequence .iphone-mockup .iphone-screen {
    padding: 8px;
}
