/* TrendServiceFunction.css */

:root {
    --kt-primary: #5d5fef;
    --kt-primary-hover: #4a4cc7;
    --kt-bg-light: #f3f4f8;
    --kt-bg-gray: #f9fafb;
    --kt-text-dark: #111827;
    --kt-text-gray: #4b5563;
    --kt-text-light: #9ca3af;
    --kt-border-color: #e5e7eb;
    --kt-naver: #03c75a;
    --kt-google: #4285f4;
    --kt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --kt-shadow-primary: 0 10px 15px -3px rgba(93, 95, 239, 0.3);
    --kt-radius: 0.5rem;
    --kt-radius-lg: 1rem;
}

.kt-intro-wrap *, .kt-func-wrap * { margin: 0; padding: 0; box-sizing: border-box; }

.kt-reveal { opacity: 1; transform: none; }
.kt-motion-ready .kt-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.kt-motion-ready .kt-reveal.visible { opacity: 1; transform: translateY(0); }
.kt-delay-100 { transition-delay: 100ms; }
.kt-delay-200 { transition-delay: 200ms; }
.kt-delay-300 { transition-delay: 300ms; }

.kt-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.kt-gradient-text { background: linear-gradient(to right, #818cf8, #d8b4fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ==========================================================================
   Base
   ========================================================================== */
.kt-func-wrap {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    color: var(--kt-text-dark);
    background-color: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}
.kt-func-wrap a { text-decoration: none; color: inherit; }
.kt-func-wrap ul { list-style: none; }
.kt-func-wrap .kt-text-center { text-align: center; }

.kt-func-wrap .kt-btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; font-weight: 700; border-radius: var(--kt-radius); transition: all 0.3s ease; cursor: pointer; border: none; font-size: 1rem; }
.kt-func-wrap .kt-btn-primary { background-color: var(--kt-primary); color: #fff; box-shadow: var(--kt-shadow-primary); }
.kt-func-wrap .kt-btn-primary:hover { background-color: var(--kt-primary-hover); transform: translateY(-2px); }

/* ==========================================================================
   Step Section Header
   ========================================================================== */
.kt-step-section { padding: 100px 0; background: #fff; }
.kt-step-header { text-align: center; max-width: 700px; margin: 0 auto 80px; }
.kt-step-label { display: inline-block; color: var(--kt-primary); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.kt-step-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.kt-step-header p { font-size: 1.05rem; color: var(--kt-text-gray); }

/* ==========================================================================
   Step Row (alternating)
   ========================================================================== */
.kt-step-row { display: flex; align-items: center; gap: 64px; margin-bottom: 130px; }
.kt-step-row:last-of-type { margin-bottom: 0; }
.kt-step-row.reverse { flex-direction: row-reverse; }
.kt-step-visual { flex: 1; min-width: 0; }
.kt-step-content { flex: 1; min-width: 0; }
.kt-step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background-color: rgba(93, 95, 239, 0.1); color: var(--kt-primary); border-radius: 50%; font-size: 1.15rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
.kt-step-content h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: 16px; }
.kt-step-content p { font-size: 1.05rem; color: var(--kt-text-gray); line-height: 1.7; }

/* Step 05 하이라이트 밴드 */
.kt-step-highlight { padding: 100px 0; background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); position: relative; overflow: hidden; }
.kt-step-highlight::before { content: ''; position: absolute; top: -30%; right: -15%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(93, 95, 239, 0.28) 0%, rgba(0, 0, 0, 0) 60%); pointer-events: none; }
.kt-step-highlight .kt-step-row { margin-bottom: 0; position: relative; z-index: 1; }
.kt-step-highlight .kt-step-num { background-color: rgba(93, 95, 239, 0.3); color: #a5b4fc; }
.kt-step-highlight .kt-step-content h3 { color: #fff; }
.kt-step-highlight .kt-step-content p { color: rgba(255, 255, 255, 0.72); }
.kt-step-highlight .kt-mock-card { box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5); }

/* ==========================================================================
   Mockup Common Card
   ========================================================================== */
.kt-mock-card { background: #fff; border: 1px solid var(--kt-border-color); border-radius: var(--kt-radius-lg); box-shadow: var(--kt-shadow-lg); padding: 28px; }

/* Step 01: Summary Panel */
.kt-mock-kw-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--kt-bg-gray); border: 1px solid var(--kt-border-color); border-radius: 9999px; padding: 10px 18px; font-size: 0.95rem; font-weight: 700; color: var(--kt-text-dark); margin-bottom: 20px; }
.kt-mock-kw-badge svg { width: 14px; height: 14px; color: var(--kt-text-light); flex-shrink: 0; }
.kt-mock-stats-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kt-mock-stat { background: var(--kt-bg-gray); border: 1px solid var(--kt-border-color); border-radius: var(--kt-radius); padding: 16px 10px; text-align: center; }
.kt-mock-stat-source { display: block; font-size: 0.62rem; color: var(--kt-text-light); font-weight: 600; margin-bottom: 4px; }
.kt-mock-stat-label { display: block; font-size: 0.72rem; color: var(--kt-text-gray); font-weight: 600; margin-bottom: 8px; }
.kt-mock-stat-value { display: block; font-size: 1.15rem; font-weight: 800; color: var(--kt-text-dark); }
.kt-mock-stat-naver .kt-mock-stat-value { color: var(--kt-naver); }
.kt-mock-stat-google .kt-mock-stat-value { color: var(--kt-google); }

/* Step 02: Search Insight */
.kt-mock-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--kt-border-color); margin-bottom: 18px; padding-bottom: 2px; }
.kt-mock-tab { padding: 6px 2px 12px; font-size: 0.85rem; font-weight: 700; color: var(--kt-text-light); border-bottom: 2px solid transparent; }
.kt-mock-tab.active { color: var(--kt-naver); border-bottom-color: var(--kt-naver); }
.kt-mock-pills { display: flex; gap: 8px; margin-bottom: 18px; }
.kt-mock-pill { padding: 6px 14px; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; background: var(--kt-bg-gray); border: 1px solid var(--kt-border-color); color: var(--kt-text-gray); }
.kt-mock-pill.active { background: var(--kt-primary); border-color: var(--kt-primary); color: #fff; }
.kt-mock-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 110px; background: var(--kt-bg-gray); border: 1px solid var(--kt-border-color); border-radius: var(--kt-radius); padding: 16px 14px 12px; margin-bottom: 18px; }
.kt-mock-bar { flex: 1; background: linear-gradient(180deg, #818cf8 0%, var(--kt-primary) 100%); border-radius: 4px 4px 0 0; animation: ktBarRise 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.kt-mock-bar:nth-child(1) { animation-delay: 0.05s; }
.kt-mock-bar:nth-child(2) { animation-delay: 0.15s; }
.kt-mock-bar:nth-child(3) { animation-delay: 0.25s; }
.kt-mock-bar:nth-child(4) { animation-delay: 0.35s; }
.kt-mock-bar:nth-child(5) { animation-delay: 0.45s; }
.kt-mock-bar:nth-child(6) { animation-delay: 0.55s; }
.kt-mock-bar:nth-child(7) { animation-delay: 0.65s; }
@keyframes ktBarRise { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.kt-mock-insight { display: flex; align-items: center; gap: 8px; background: rgba(93, 95, 239, 0.06); border: 1px solid rgba(93, 95, 239, 0.2); border-radius: var(--kt-radius); padding: 12px 16px; font-size: 0.85rem; font-weight: 600; color: var(--kt-primary); }
.kt-mock-insight svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Step 03: Related Keyword Table */
.kt-mock-filter-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.kt-mock-filter-chip { padding: 6px 12px; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; background: var(--kt-bg-gray); border: 1px solid var(--kt-border-color); color: var(--kt-text-gray); }
.kt-mock-table-wrap { overflow-x: auto; }
.kt-mock-table { width: 100%; border-collapse: collapse; text-align: center; }
.kt-mock-table th { padding: 10px 8px; font-size: 0.72rem; font-weight: 700; color: var(--kt-text-light); border-bottom: 1px solid var(--kt-border-color); background: var(--kt-bg-gray); white-space: nowrap; }
.kt-mock-table td { padding: 12px 8px; font-size: 0.85rem; border-bottom: 1px solid var(--kt-border-color); color: var(--kt-text-dark); white-space: nowrap; }
.kt-mock-table tr:last-child td { border-bottom: none; }
.kt-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 9999px; font-size: 0.72rem; font-weight: 700; border: 1px solid transparent; }
.kt-badge-high { background-color: #fef2f2; color: #ef4444; border-color: #fecaca; }
.kt-badge-mid { background-color: #fffbeb; color: #d97706; border-color: #fde68a; }
.kt-badge-low { background-color: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }

/* Step 04: Content Insight */
.kt-mock-hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kt-mock-hbar-label { flex: 0 0 56px; font-size: 0.8rem; font-weight: 700; color: var(--kt-text-gray); }
.kt-mock-hbar-track { flex: 1; height: 12px; background: var(--kt-bg-gray); border: 1px solid var(--kt-border-color); border-radius: 9999px; overflow: hidden; }
.kt-mock-hbar-fill { height: 100%; background: linear-gradient(90deg, #818cf8, var(--kt-primary)); border-radius: 9999px; }
.kt-mock-hbar-value { flex: 0 0 40px; text-align: right; font-size: 0.8rem; font-weight: 700; color: var(--kt-text-dark); }
.kt-mock-hbars { margin-bottom: 18px; }

/* Step 05: Multi-keyword Compare */
.kt-mock-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.kt-mock-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(93, 95, 239, 0.08); border: 1px solid rgba(93, 95, 239, 0.25); color: var(--kt-primary); border-radius: 9999px; padding: 7px 8px 7px 14px; font-size: 0.8rem; font-weight: 600; }
.kt-mock-chip-x { background: none; border: none; color: var(--kt-primary); font-size: 0.9rem; font-weight: 700; cursor: default; line-height: 1; padding: 2px 4px; }
.kt-mock-chip-count { margin-left: auto; font-size: 0.78rem; font-weight: 700; color: var(--kt-text-light); }
.kt-mock-multiline { background: var(--kt-bg-gray); border: 1px solid var(--kt-border-color); border-radius: var(--kt-radius); padding: 16px; }
.kt-mock-multiline svg { width: 100%; height: auto; display: block; }
.kt-mock-legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.kt-mock-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--kt-text-gray); }
.kt-mock-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.kt-mock-legend-dot.c1 { background: var(--kt-primary); }
.kt-mock-legend-dot.c2 { background: var(--kt-google); }
.kt-mock-legend-dot.c3 { background: #f59e0b; }

/* Step 06: Mini Feature Cards */
.kt-mini-cards { display: flex; flex-direction: column; gap: 14px; }
.kt-mini-card { display: flex; align-items: center; gap: 16px; background: var(--kt-bg-gray); border: 1px solid var(--kt-border-color); border-radius: var(--kt-radius); padding: 18px 20px; }
.kt-mini-card-icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: rgba(93, 95, 239, 0.1); display: flex; align-items: center; justify-content: center; color: var(--kt-primary); }
.kt-mini-card-icon svg { width: 20px; height: 20px; }
.kt-mini-card-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--kt-text-dark); margin-bottom: 2px; }
.kt-mini-card-text span { font-size: 0.82rem; color: var(--kt-text-gray); }

/* ==========================================================================
   Free Benefit Banner
   ========================================================================== */
.kt-free-benefit { padding: 40px 0 100px; background: #fff; }
.kt-benefit-box { background: linear-gradient(135deg, #111327 0%, #1e1b4b 100%); border: 1px solid rgba(93, 95, 239, 0.4); border-radius: var(--kt-radius-lg); padding: 64px 20px; text-align: center; max-width: 900px; margin: 0 auto; position: relative; overflow: hidden; box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.45), inset 0 0 60px rgba(93, 95, 239, 0.08); }
.kt-benefit-box::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(93, 95, 239, 0.18) 0%, rgba(0, 0, 0, 0) 55%); pointer-events: none; }
.kt-benefit-box > * { position: relative; z-index: 1; }
.kt-benefit-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--kt-primary); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 0.875rem; font-weight: 700; margin-bottom: 16px; }
.kt-benefit-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.kt-benefit-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; color: #fff; }
.kt-benefit-box h2 .kt-gradient-text { text-shadow: 0 0 24px rgba(139, 92, 246, 0.55); }
.kt-benefit-box p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.65); line-height: 1.7; }

/* ==========================================================================
   CTA
   ========================================================================== */
.kt-cta { background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); padding: 100px 0; text-align: center; }
.kt-cta h2 { color: #fff; font-size: 2.25rem; font-weight: 700; margin-bottom: 24px; }
.kt-cta p { color: var(--kt-text-light); font-size: 1.125rem; margin-bottom: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .kt-step-section { padding: 70px 0; }
    .kt-step-highlight { padding: 70px 0; }
    .kt-step-header { margin-bottom: 56px; }
    .kt-step-row, .kt-step-row.reverse { flex-direction: column; gap: 36px; margin-bottom: 90px; }
    .kt-step-visual { width: 100%; }
    .kt-mock-stats-3 { gap: 8px; }
}

@media (max-width: 768px) {
    .kt-step-header h2 { font-size: 1.6rem; }
    .kt-step-content h3 { font-size: 1.4rem; }
    .kt-step-content p { font-size: 0.95rem; }
    .kt-mock-card { padding: 20px; }
    .kt-mock-stats-3 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .kt-mock-stat { padding: 12px 6px; }
    .kt-mock-stat-value { font-size: 0.95rem; }
    .kt-mock-hbar-label { flex-basis: 48px; font-size: 0.72rem; }

    .kt-benefit-box h2 { font-size: 1.6rem; }
    .kt-benefit-box { padding: 40px 20px; }
    .kt-cta { padding: 70px 0; }
    .kt-cta h2 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .kt-motion-ready .kt-reveal,
    .kt-motion-ready .kt-reveal.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .kt-func-wrap *,
    .kt-func-wrap *::before,
    .kt-func-wrap *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
