/* =========================
   index.css
   다크 테마 메인 페이지
========================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #18191d;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── 공통 컨테이너 ── */
.idx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── 공통 섹션 ── */
.idx-section {
    padding: 96px 0;
}
.idx-section--alt {
    background: #1e1f24;
}
.idx-section__head {
    text-align: center;
    margin-bottom: 56px;
}
.idx-section__title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}
.idx-section__desc {
    font-size: 17px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}

/* ── 배지 ── */
.idx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234,84,26,0.12);
    border: 1px solid rgba(234,84,26,0.3);
    color: #ea541a;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

/* ── 버튼 ── */
.idx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    font-family: inherit;
}
.idx-btn--primary {
    background: #ea541a;
    color: #fff;
}
.idx-btn--primary:hover { background: #d44817; }
.idx-btn--ghost {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}
.idx-btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.idx-btn--lg { padding: 18px 36px; font-size: 17px; border-radius: 14px; }

/* ══ 1. 히어로 ══ */
.idx-hero {
    padding: 130px 32px 110px;
    text-align: center;
    background: #18191d;
}
.idx-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}
.idx-hero__title {
    font-size: 62px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}
.idx-hero__title em {
    color: #ea541a;
    font-style: normal;
}
.idx-hero__desc {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 44px;
}
.idx-hero__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}
.idx-hero__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.idx-hero__stat strong {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
}
.idx-hero__stat span {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
    display: block;
}
.idx-hero__stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,0.1);
}

/* ══ 2. Pain Points ══ */
.idx-pains {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.idx-pain {
    background: #26272b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px 24px;
    transition: border-color 0.2s, transform 0.2s;
}
.idx-pain:hover {
    border-color: rgba(234,84,26,0.25);
    transform: translateY(-2px);
}
.idx-pain__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
    background: rgba(234,84,26,0.08);
}
.idx-pain__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.idx-pain__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
}

/* ══ 3. Solution ══ */
.idx-solutions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.idx-solution {
    background: #26272b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px 28px;
}
.idx-solution--accent {
    border-color: rgba(234,84,26,0.35);
    background: linear-gradient(135deg, rgba(234,84,26,0.06) 0%, #26272b 50%);
}
.idx-solution__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(234,84,26,0.12);
    color: #ea541a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.idx-solution__title {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}
.idx-solution__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
    margin-bottom: 20px;
}
.idx-solution__tag {
    display: inline-block;
    background: rgba(234,84,26,0.12);
    border: 1px solid rgba(234,84,26,0.25);
    color: #ea541a;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
}

/* ══ 4. Tools ══ */
.idx-tools {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.idx-tool {
    background: #26272b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 52px 56px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: center;
}
.idx-tool--reverse {
    grid-template-columns: 320px 1fr;
}
.idx-tool--reverse .idx-tool__visual {
    order: -1;
}
.idx-tool__badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 16px;
    background: rgba(234,84,26,0.12);
    color: #ea541a;
    border: 1px solid rgba(234,84,26,0.2);
}
.idx-tool__title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}
.idx-tool__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    margin-bottom: 24px;
}
.idx-tool__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.idx-tool__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    padding-left: 22px;
    position: relative;
}
.idx-tool__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ea541a;
    font-weight: 700;
    font-size: 13px;
}
.idx-tool__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #ea541a;
    transition: gap 0.2s;
}
.idx-tool__link:hover { gap: 10px; }
.idx-tool__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    height: 220px;
    font-size: 84px;
}

/* ══ 5. 성공 사례 ══ */
.idx-cases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.idx-case {
    background: #26272b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.idx-case:hover {
    border-color: rgba(234,84,26,0.3);
    transform: translateY(-3px);
}
.idx-case__thumb {
    height: 140px;
    background: #1e1f24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.idx-case__body {
    padding: 20px;
}
.idx-case__cats {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.idx-case__cat {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 5px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
}
.idx-case__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}
.idx-case__desc {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-bottom: 16px;
}
.idx-case__link {
    font-size: 13px;
    font-weight: 700;
    color: #ea541a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}
.idx-case__link:hover { gap: 8px; }
.idx-cases__more {
    text-align: center;
}

/* ══ Footer CTA ══ */
.idx-cta {
    padding: 120px 32px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(234,84,26,0.18) 0%, transparent 60%),
        #18191d;
}
.idx-cta__title {
    font-size: 46px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.idx-cta__desc {
    font-size: 17px;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    margin-bottom: 44px;
}
.idx-cta__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.idx-cta__note {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.idx-cta__note span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ══ 반응형 ══ */
@media (max-width: 1024px) {
    .idx-pains { grid-template-columns: repeat(2, 1fr); }
    .idx-cases { grid-template-columns: repeat(2, 1fr); }
    .idx-tool {
        grid-template-columns: 1fr;
        padding: 36px 32px;
        gap: 32px;
    }
    .idx-tool--reverse { grid-template-columns: 1fr; }
    .idx-tool--reverse .idx-tool__visual { order: 0; }
    .idx-tool__visual { height: 180px; }
}

@media (max-width: 768px) {
    .idx-hero { padding: 90px 20px 80px; }
    .idx-hero__title { font-size: 38px; letter-spacing: -0.5px; }
    .idx-hero__desc { font-size: 16px; }
    .idx-hero__stats { gap: 20px; }
    .idx-hero__stat-divider { display: none; }
    .idx-hero__stat strong { font-size: 26px; }

    .idx-section { padding: 64px 0; }
    .idx-section__title { font-size: 26px; }

    .idx-pains { grid-template-columns: 1fr; }
    .idx-solutions { grid-template-columns: 1fr; }
    .idx-cases { grid-template-columns: 1fr; }

    .idx-tool { padding: 28px 24px; }
    .idx-tool__title { font-size: 20px; }

    .idx-cta { padding: 80px 20px; }
    .idx-cta__title { font-size: 30px; }
    .idx-btn--lg { width: 100%; justify-content: center; }

    .idx-container { padding: 0 16px; }
}
