/* 한국어 홈페이지 솔루션 탭: 대표 영상과 상세 페이지 연결 */

#audit-manager {
    --solution-color: #10b981;
}

#evidence-map {
    --solution-color: #3b82f6;
}

#design-capture {
    --solution-color: #8b5cf6;
}

#deployment {
    --solution-color: #14b8a6;
}

#itsm {
    --solution-color: #f97316;
}

.solutions-tab:focus-visible,
.solution-detail-link:focus-visible,
.solution-video-play:focus-visible {
    outline: 3px solid rgba(15, 23, 42, 0.32);
    outline-offset: 3px;
}

.solution-actions {
    margin: 0 0 32px;
}

.solution-detail-link:focus-visible {
    outline: 3px solid #2563eb;
}

.solution-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #0f172a;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.solution-detail-link:hover {
    border-color: #1e293b;
    background: #1e293b;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    text-decoration: none;
    transform: translateY(-1px);
}

.solution-detail-link:active {
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
    transform: translateY(1px);
}

.solution-detail-link__arrow {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    transition: transform 180ms ease;
}

.solution-detail-link:hover .solution-detail-link__arrow {
    transform: translateX(3px);
}

.solution-video-card {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
}

#audit-manager .solution-video-card {
    box-shadow: 0 16px 44px rgba(16, 185, 129, 0.24);
}

#evidence-map .solution-video-card {
    box-shadow: 0 16px 44px rgba(59, 130, 246, 0.24);
}

#design-capture .solution-video-card {
    box-shadow: 0 16px 44px rgba(139, 92, 246, 0.24);
}

#deployment .solution-video-card {
    box-shadow: 0 16px 44px rgba(20, 184, 166, 0.24);
}

#itsm .solution-video-card {
    box-shadow: 0 16px 44px rgba(249, 115, 22, 0.24);
}

.solution-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.solution-demo-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition:
        background 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.solution-video-play:hover {
    background: rgba(15, 23, 42, 0.96);
    transform: translate(-50%, -50%) scale(1.03);
}

.solution-video-play:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.solution-video-play__icon {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
}

.solution-video-card.is-playing .solution-video-play,
.solution-video-card.has-error .solution-video-play {
    opacity: 0;
    pointer-events: none;
}

.solution-video-error {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 24px;
    background: #0f172a;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.6;
}

.solution-video-error[hidden] {
    display: none;
}

.solution-video-error a {
    color: #ffffff;
    font-weight: 700;
    text-underline-offset: 4px;
}

.solution-video-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 12px 16px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.solution-video-caption__title {
    color: #0f172a;
    font-weight: 700;
}

.solution-video-caption__duration {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.solution-guide {
    background: #f8fafc;
}

.solution-guide__header,
.homepage-faq__header {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.solution-guide__header .section-subtitle,
.homepage-faq__header .section-subtitle {
    margin-top: 18px;
    color: #475569;
    line-height: 1.8;
}

.solution-guide__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.solution-guide__panel {
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.solution-guide__panel h3,
.solution-scope h3,
.selection-criteria h3,
.homepage-faq__item h3 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
    line-height: 1.45;
}

.solution-guide__panel p {
    margin: 16px 0 0;
    color: #475569;
    line-height: 1.85;
}

.solution-guide__panel ul {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.solution-guide__panel li {
    position: relative;
    padding-left: 22px;
    color: #334155;
    line-height: 1.75;
}

.solution-guide__panel li::before {
    position: absolute;
    top: 0.74em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #2563eb;
    content: "";
}

.solution-scope {
    margin-top: 24px;
    padding: 32px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.solution-scope:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.solution-scope h3 {
    margin-bottom: 22px;
}

.solution-scope table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
}

.solution-scope th,
.solution-scope td {
    padding: 17px 18px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.solution-scope thead th {
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.solution-scope thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.solution-scope thead th:last-child {
    border-radius: 0 10px 10px 0;
}

.solution-scope tbody th {
    width: 18%;
    color: #0f172a;
    font-weight: 700;
    white-space: nowrap;
}

.solution-scope tbody tr:last-child th,
.solution-scope tbody tr:last-child td {
    border-bottom: 0;
}

.selection-criteria {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    margin-top: 24px;
    padding: 40px;
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    background: #f1f5f9;
}

.selection-criteria__intro h3 {
    margin-top: 10px;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 36px);
}

.selection-criteria__intro p {
    margin: 18px 0 0;
    color: #475569;
    line-height: 1.8;
}

.selection-criteria__list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: selection-criteria;
}

.selection-criteria__list li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #dbe5f0;
    counter-increment: selection-criteria;
}

.selection-criteria__list li:first-child {
    padding-top: 0;
}

.selection-criteria__list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.selection-criteria__list strong {
    color: #0f172a;
    font-size: 15px;
}

.selection-criteria__list strong::before {
    margin-right: 8px;
    color: #2563eb;
    content: "0" counter(selection-criteria);
}

.selection-criteria__list span {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.stat-number--label {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.3;
}

.homepage-faq {
    background: #f8fafc;
}

.homepage-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
}

.homepage-faq__item {
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
}

.homepage-faq__item p {
    margin: 14px 0 0;
    color: #475569;
    line-height: 1.8;
}

.homepage-faq__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 24px 28px;
    border-radius: 16px;
    background: #eaf2ff;
}

.homepage-faq__cta p {
    margin: 0;
    color: #1e3a8a;
    font-weight: 650;
    line-height: 1.6;
}

.homepage-faq__cta .btn {
    flex-shrink: 0;
}

.solution-guide .fade-in,
.homepage-faq .fade-in {
    transition-duration: 650ms;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-guide__summary .solution-guide__panel:nth-child(2),
.homepage-faq__grid .homepage-faq__item:nth-child(2) {
    transition-delay: 70ms;
}

.homepage-faq__grid .homepage-faq__item:nth-child(3) {
    transition-delay: 140ms;
}

.homepage-faq__grid .homepage-faq__item:nth-child(4) {
    transition-delay: 210ms;
}

.form-status {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.form-status[hidden] {
    display: none;
}

.form-status.is-success {
    background: #ecfdf5;
    color: #065f46;
}

.form-status.is-error {
    background: #fef2f2;
    color: #991b1b;
}

.form-status a {
    color: inherit;
    font-weight: 700;
    text-underline-offset: 3px;
}

.contact-form button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

@media (max-width: 768px) {
    .solutions-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        margin-right: -20px;
        margin-left: -20px;
        padding: 0 20px 10px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .solutions-tabs::-webkit-scrollbar {
        display: none;
    }

    .solutions-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .solution-detail {
        gap: 34px;
    }

    .solution-actions,
    .solution-detail-link {
        width: 100%;
    }

    .solution-detail-link {
        justify-content: space-between;
        min-height: 48px;
        padding: 12px 16px;
    }

    .solution-video-play {
        min-height: 44px;
        padding: 10px 15px;
        font-size: 13px;
    }

    .solution-video-caption {
        align-items: flex-start;
        min-height: 44px;
        padding: 10px 13px;
        font-size: 12px;
    }

    .solution-guide__summary,
    .homepage-faq__grid {
        grid-template-columns: 1fr;
    }

    .solution-guide__panel,
    .solution-scope,
    .homepage-faq__item {
        padding: 24px 20px;
    }

    .solution-scope {
        margin-right: -4px;
        margin-left: -4px;
    }

    .selection-criteria {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px 22px;
    }

    .selection-criteria__list li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .homepage-faq__cta {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .homepage-faq__cta .btn {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .solutions-content {
        opacity: 1;
        animation: none;
    }

    .solution-detail-link__arrow,
    .solution-video-play {
        transition: none;
    }
}
