/**
 * TicketBNK 솔루션 페이지 공통 Hero
 * kiosk · sot-kiosk-wpf · sot-pos · sot-web-spa · sot-sr
 */

/* ── Shell ── */
.solution-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: min(72vh, 640px);
    padding: calc(var(--header-h, 72px) + 2.5rem) 0 3rem;
    background:
        radial-gradient(circle at 65% 45%, rgba(48, 122, 255, 0.34), transparent 34%),
        linear-gradient(135deg, #07142e 0%, #0b2250 48%, #061226 100%);
    color: #fff;
}

.solution-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.solution-hero-bg::before,
.solution-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.solution-page #main,
.solution-page .page-body,
.solution-page .kiosk-section,
.solution-page .screen-section {
    position: relative;
    z-index: 1;
}

.solution-page .page-body,
.solution-page .screen-section {
    padding-top: 64px;
}

/* ── Grid layout ── */
.solution-hero-inner.container,
.container.solution-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1400px, 100% - 2.5rem);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 7rem);
}

/* ── Copy ── */
.solution-hero-copy {
    max-width: 680px;
    text-align: left;
}

.solution-hero-copy .breadcrumb,
.solution-hero-copy .hero-breadcrumb {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--text-on-dark-subtle);
}

.solution-hero-copy .breadcrumb a,
.solution-hero-copy .hero-breadcrumb a {
    color: var(--text-on-dark-muted);
    text-decoration: none;
}

.solution-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    margin: 0 0 0.75rem;
    border: 1px solid rgba(74, 163, 255, 0.75);
    border-radius: 999px;
    color: #78c2ff;
    background: rgba(20, 80, 160, 0.18);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.solution-hero-title {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 4vw, 5rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--text-on-dark);
    word-break: keep-all;
}

.solution-hero-title span {
    display: block;
}

@media (min-width: 1024px) {
    .solution-hero-title span {
        white-space: nowrap;
    }
}

.solution-hero-subtitle-strong {
    margin: 0 0 0.75rem;
    color: #55b7ff;
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.35;
}

.solution-hero-description {
    max-width: 620px;
    margin: 0 0 1.75rem;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.7;
    color: var(--text-on-dark-muted);
}

/* ── CTA ── */
.solution-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 0;
}

.solution-hero-actions .btn {
    min-height: 52px;
    padding: 0 28px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

.solution-hero-actions .btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.solution-hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.36);
}

/* ── Feature summary ── */
.solution-hero-feature-list {
    display: grid;
    grid-template-columns: repeat(6, auto);
    align-items: center;
    gap: 0;
    margin: 38px 0 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 720px;
}

.solution-hero-feature-list li {
    position: relative;
    min-width: 106px;
    padding: 0 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.solution-hero-feature-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 0;
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, 0.22);
}

.solution-hero-feature-list .feature-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
}

.solution-hero-feature-list .feature-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
}

.solution-hero-feature-list .feature-label {
    display: block;
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1.3;
}

/* ── Visual (base) ── */
.solution-hero-visual {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Hardware variant (ESTAR-3 / kiosk.html) ── */
.solution-hero--hardware {
    background: transparent;
}

.solution-hero--hardware .solution-hero-bg {
    background: linear-gradient(128deg, #081a3d 0%, #102b63 46%, #081a3d 100%);
}

.solution-hero--hardware .solution-hero-bg::before {
    background: url('../images/products/estar-3-side.png') 72% center / cover no-repeat;
    opacity: 0.12;
}

.solution-hero--hardware .solution-hero-bg::after {
    background:
        radial-gradient(ellipse 58% 72% at 52% 42%, rgba(29, 79, 168, 0.42) 0%, transparent 62%),
        radial-gradient(ellipse 40% 50% at 78% 68%, rgba(16, 43, 99, 0.35) 0%, transparent 58%);
}

.solution-hero--hardware .solution-hero-visual {
    align-items: flex-end;
}

.solution-hero-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 480px;
}

.solution-hero-pedestal {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, 88%);
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(29, 79, 168, 0.4) 0%, rgba(16, 43, 99, 0.15) 55%, transparent 72%);
    box-shadow:
        0 12px 48px rgba(8, 26, 61, 0.55),
        0 4px 16px rgba(29, 79, 168, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.solution-hero-product-img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(540px, 52vh);
    object-fit: contain;
    margin-inline: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

/* ── Screen variant (sot-kiosk-wpf) ── */
.sot-kiosk-screen-hero .solution-hero-bg::before {
    background:
        radial-gradient(ellipse 50% 60% at 80% 50%, rgba(48, 122, 255, 0.15) 0%, transparent 60%);
}

/* ── Software / screen variant (POS · SPA · SR) ── */
.solution-hero--software .solution-hero-visual {
    justify-content: flex-end;
}

.solution-hero--software .solution-hero-visual picture,
.solution-hero--software .solution-hero-visual img {
    display: block;
    width: 100%;
    max-width: min(560px, 100%);
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.solution-page #main,
.pos-page.solution-page #main,
.spa-page.solution-page #main,
.sr-page.solution-page #main {
    padding-bottom: 0;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
    .solution-hero-inner.container,
    .container.solution-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        gap: clamp(2rem, 4vw, 4rem);
    }

    .solution-hero-feature-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .solution-hero-feature-list li {
        min-width: 0;
        padding: 0 12px;
    }

    .solution-hero-feature-list .feature-label {
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .solution-hero {
        min-height: auto;
        padding: calc(var(--header-h, 64px) + 2rem) 0 2.5rem;
    }

    .solution-hero-inner.container,
    .container.solution-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .solution-hero-copy {
        max-width: none;
    }

    .solution-hero-visual {
        order: -1;
    }

    .solution-hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .solution-hero-feature-list {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 18px;
        max-width: none;
    }

    .solution-hero-feature-list li {
        min-width: 0;
        padding: 0 10px;
    }

    .solution-hero-feature-list li::after {
        display: none;
    }

    .solution-hero-actions .btn {
        flex: 1 1 calc(50% - 16px);
        min-width: 9rem;
    }

    .solution-hero-actions .btn:last-child {
        flex-basis: 100%;
    }

    .solution-hero-product-img {
        max-height: min(300px, 46vh);
    }

    .solution-hero-stage {
        max-width: min(320px, 78vw);
        margin-inline: auto;
    }
}

@media (max-width: 430px) {
    .solution-hero-feature-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-hero-actions .btn {
        flex-basis: 100%;
    }
}
