/* ========================================
   Shadow CRM 랜딩페이지 - 커스텀 스타일
   ======================================== */

/* ── 기본 리셋 & 스무스 스크롤 ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── 텍스트 선택 방지 (폼 요소 제외) ── */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, select, button {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* ── 그라데이션 텍스트 ── */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── CTA 버튼 ── */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ── 네비게이션 스크롤 그림자 ── */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

/* ── 네비게이션 활성 링크 ── */
.nav-link.active {
    color: #3b82f6;
    font-weight: 600;
}

/* ── Hero 이미지 효과 ── */
.hero-image-wrapper {
    perspective: 1000px;
}

.hero-image-wrapper img {
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: rotateY(0deg) rotateX(0deg);
}

/* ── 플로팅 카드 애니메이션 ── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ── 피처 카드 호버 ── */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* ── 쇼케이스 이미지 ── */
.showcase-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.showcase-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.showcase-image img {
    transition: transform 0.5s ease;
}

.showcase-image:hover img {
    transform: scale(1.03);
}

/* ── 비교표 스타일 ── */
.comparison-table {
    border-spacing: 0;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    white-space: nowrap;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04), rgba(139, 92, 246, 0.04));
    border-left: 2px solid #3b82f6;
}

.comparison-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.02);
}

/* ── 요금제 카드 ── */
.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-popular {
    transform: scale(1.05);
}

.pricing-popular:hover {
    transform: scale(1.05) translateY(-8px);
}

/* ── Swiper 커스텀 ── */
.screenshots-swiper {
    padding-bottom: 48px;
}

.screenshots-swiper .swiper-slide {
    opacity: 0.5;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.screenshots-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.screenshots-swiper .swiper-pagination-bullet {
    background: #3b82f6;
    width: 10px;
    height: 10px;
}

.screenshots-swiper .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 5px;
}

/* ── 폼 포커스 ── */
input:focus, textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ── 제출 버튼 로딩 상태 ── */
#submit-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

#submit-btn.loading .fa-paper-plane {
    display: none;
}

#submit-btn.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── 스크롤바 커스텀 ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── 반응형 ── */

/* 태블릿 */
@media (max-width: 1024px) {
    .pricing-popular {
        transform: scale(1);
    }

    .pricing-popular:hover {
        transform: translateY(-8px);
    }

    .hero-image-wrapper img {
        transform: none;
    }

    .hero-image-wrapper:hover img {
        transform: none;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .floating-card,
    .floating-card-2 {
        display: none;
    }

    .feature-card:hover,
    .pricing-card:hover {
        transform: none;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

/* 작은 모바일 */
@media (max-width: 480px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
/* 히어로 터미널 시연 (AI 에이전트 자연어 대화) */
.terminal-demo {
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal-demo .typing {
    display: inline-block;
    border-right: 2px solid #34d399;
    animation: blink-caret 0.75s step-end infinite;
    min-height: 1em;
    min-width: 1ch;
    white-space: pre-wrap;
    word-break: break-word;
}
.terminal-demo .typing.done {
    border-right-color: transparent;
    animation: none;
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #34d399; }
}
