/**
 * TicketBNK — 출입통제 게이트 시스템 (Gate Control Software)
 */
.gate-page {
    --gate-accent: #1d4ed8;
    background: #f8fafc;
    color: #0f172a;
}

.gate-page .page-container {
    width: min(calc(100% - 48px), 1200px);
    margin-inline: auto;
}

.gate-section {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.gate-section--alt {
    background: #fff;
    border-block: 1px solid rgba(15, 23, 42, 0.05);
}
.gate-section-head {
    max-width: 42rem;
    margin-bottom: 2rem;
}
.gate-section-head .eyebrow {
    margin: 0 0 0.5rem;
    color: var(--gate-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gate-section-head h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    letter-spacing: -0.03em;
    word-break: keep-all;
}
.gate-section-head p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    word-break: keep-all;
}

.gate-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}
.gate-status-card {
    padding: 1.2rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gate-status-card b {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #64748b;
}
.gate-status-card b i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.gate-status-card b i.is-warn { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
.gate-status-card b i.is-alert { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
.gate-status-card strong {
    display: block;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.gate-status-card span {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.86rem;
}

.gate-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.gate-feature {
    padding: 1.25rem 1.2rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gate-feature strong {
    display: block;
    margin-bottom: 0.4rem;
}
.gate-feature p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    word-break: keep-all;
}

.gate-lineup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.gate-lineup span {
    display: inline-flex;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.86rem;
    font-weight: 700;
}

.gate-console {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #0f172a;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}
.gate-console img {
    display: block;
    width: 100%;
    height: auto;
}
.gate-console figcaption {
    padding: 0.85rem 1.1rem;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Hardware lineup — image-first product cards */
.gate-hw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}
.gate-hw-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.gate-hw-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
}
.gate-hw-card__media {
    flex: 0 0 auto;
    height: 250px;
    min-height: 250px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f6f8fc;
}
.gate-hw-card__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 88%;
    margin: auto;
    object-fit: contain;
    transition: transform 220ms ease;
}
.gate-hw-card--speed .gate-hw-card__image,
.gate-hw-card--flap .gate-hw-card__image,
.gate-hw-card--tripod .gate-hw-card__image {
    max-width: 88%;
    max-height: 88%;
}
.gate-hw-card:hover .gate-hw-card__image {
    transform: scale(1.03);
}
.gate-hw-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.1rem 1.2rem;
    flex: 1 1 auto;
}
.gate-hw-card__type {
    color: var(--gate-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.gate-hw-card h3 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.gate-hw-card__summary {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: keep-all;
}
.gate-hw-card__badges {
    list-style: none;
    margin: 0.15rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.gate-hw-card__badges li {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 700;
}
.gate-hw-card__badges li::before {
    content: "✔";
    color: #16a34a;
    font-size: 0.68rem;
}
.gate-hw-card__features {
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.55;
}
.gate-hw-card__toggle {
    appearance: none;
    margin-top: auto;
    align-self: flex-start;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(29, 78, 216, 0.3);
    background: rgba(29, 78, 216, 0.06);
    color: var(--gate-accent);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}
.gate-hw-card__toggle:hover,
.gate-hw-card__toggle[aria-expanded="true"] {
    background: rgba(29, 78, 216, 0.12);
}
.gate-hw-acc {
    margin-top: 0.35rem;
}
.gate-spec {
    margin: 0;
    display: grid;
    gap: 0.45rem;
}
.gate-spec > div {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.8rem;
}
.gate-spec dt {
    margin: 0;
    color: #64748b;
    font-weight: 700;
}
.gate-spec dd {
    margin: 0;
    color: #0f172a;
    word-break: keep-all;
}

/* Compare */
.gate-compare-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}
.gate-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 0.88rem;
}
.gate-compare-table th,
.gate-compare-table td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    word-break: keep-all;
    vertical-align: top;
}
.gate-compare-table thead th {
    background: #f1f5f9;
    font-weight: 800;
}
.gate-compare-table tbody th {
    font-weight: 700;
    color: #334155;
    background: #fafbfc;
    width: 8.5rem;
}
.gate-compare-cards {
    display: none;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
}
.gate-compare-cards article {
    padding: 1rem 1.05rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gate-compare-cards h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}
.gate-compare-cards ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Scope */
.gate-scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.gate-scope-card {
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.gate-scope-card--soft {
    border-color: rgba(29, 78, 216, 0.22);
    background: linear-gradient(180deg, #f8fbff, #fff);
}
.gate-scope-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}
.gate-scope-card ul {
    margin: 0;
    padding-left: 1.15rem;
    color: #334155;
    line-height: 1.65;
    font-size: 0.92rem;
    word-break: keep-all;
}

/* Validation flow — guided sequential highlight */
.validation-flow-panel {
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.1rem 1.15rem;
    box-sizing: border-box;
    overflow: visible;
}
.validation-flow__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.validation-flow__hint {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 600;
    word-break: keep-all;
}
.validation-flow__toggle {
    appearance: none;
    flex: 0 0 auto;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.validation-flow__toggle:hover {
    background: rgba(37, 99, 235, 0.12);
}
.validation-flow__toggle[aria-pressed="true"] {
    background: #eff6ff;
}
.validation-flow {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        34px
        minmax(0, 1fr)
        34px
        minmax(0, 1fr)
        34px
        minmax(0, 1.1fr)
        34px
        minmax(0, 1fr)
        34px
        minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}
@media (min-width: 1280px) {
    .validation-flow {
        grid-template-columns:
            minmax(110px, 1fr)
            34px
            minmax(110px, 1fr)
            34px
            minmax(110px, 1fr)
            34px
            minmax(125px, 1.1fr)
            34px
            minmax(110px, 1fr)
            34px
            minmax(110px, 1fr);
    }
}
.validation-flow__step {
    position: relative;
    appearance: none;
    min-width: 0;
    width: 100%;
    min-height: 150px;
    display: grid;
    grid-template-rows: auto 104px auto;
    place-items: center;
    padding: 12px 8px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    opacity: 0.32;
    transform: scale(0.94);
    filter: saturate(0.75);
    transition:
        opacity 380ms ease,
        transform 380ms ease,
        background-color 380ms ease,
        border-color 380ms ease,
        box-shadow 380ms ease,
        filter 380ms ease;
}
.validation-flow__step:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}
.validation-flow__step.is-pending {
    opacity: 0.32;
    transform: scale(0.94);
    filter: saturate(0.7);
    box-shadow: none;
}
.validation-flow__step.is-active {
    opacity: 1;
    transform: scale(1);
    filter: none;
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.16);
}
.validation-flow__step.is-complete {
    opacity: 0.72;
    transform: scale(0.97);
    filter: saturate(0.92);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: none;
}
.validation-flow__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.15rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 300ms ease, background-color 300ms ease, color 300ms ease;
}
.validation-flow__step.is-active .validation-flow__badge {
    opacity: 1;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}
.validation-flow__step.is-complete .validation-flow__badge {
    opacity: 0.9;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}
.validation-flow__media {
    width: 100%;
    height: 104px;
    display: grid;
    place-items: end center;
    justify-items: center;
    align-items: end;
    overflow: hidden;
}
.validation-flow__media--history {
    position: relative;
}
.validation-flow__media--history::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background:
        linear-gradient(#94a3b8, #94a3b8) 10px 28px / 22px 3px no-repeat,
        linear-gradient(#94a3b8, #94a3b8) 10px 21px / 16px 3px no-repeat,
        linear-gradient(#94a3b8, #94a3b8) 10px 14px / 22px 3px no-repeat,
        linear-gradient(#cbd5e1, #cbd5e1);
    opacity: 0.85;
}
.validation-flow__media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform: scale(0.96);
    filter: grayscale(0.18) saturate(0.75);
    transition: transform 420ms ease, filter 420ms ease;
}
.validation-flow__step.is-active .validation-flow__media img {
    transform: scale(1.05);
    filter: grayscale(0) saturate(1);
}
.validation-flow__step.is-complete .validation-flow__media img {
    transform: scale(0.98);
    filter: grayscale(0) saturate(0.92);
}
.validation-flow__step strong {
    display: block;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    font-weight: 700;
    color: #64748b;
    word-break: keep-all;
    transition: color 300ms ease;
}
.validation-flow__step.is-active strong {
    color: #0f172a;
    font-weight: 800;
}
.validation-flow__connector {
    position: relative;
    width: 34px;
    height: 20px;
    display: grid;
    place-items: center;
    justify-self: center;
}
.validation-flow__line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #dbe4f0;
}
.validation-flow__pulse {
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 999px;
    background: #2563eb;
    opacity: 0;
    transform: translateX(0);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.65);
    pointer-events: none;
}
.validation-flow__connector.is-active .validation-flow__pulse {
    opacity: 1;
    animation: validationPulse 760ms ease-in-out both;
}
.validation-flow__connector.is-complete .validation-flow__line {
    background: rgba(37, 99, 235, 0.45);
}
.validation-flow__arrow {
    position: relative;
    z-index: 1;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}
.validation-flow__connector.is-active .validation-flow__arrow {
    color: #2563eb;
}
.validation-flow__connector.is-complete .validation-flow__arrow {
    color: #64748b;
}
.validation-flow__description {
    margin: 0.95rem 0 0;
    min-height: 1.45em;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: keep-all;
}
@keyframes validationPulse {
    from { transform: translateX(0); }
    to { transform: translateX(26px); }
}

/* Venues / checklist */
.gate-venue-grid,
.gate-check-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}
.gate-venue-grid li,
.gate-check-grid li {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 700;
    font-size: 0.92rem;
    word-break: keep-all;
}
.gate-check-grid li {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.gate-related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}
.gate-related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gate-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
.gate-related-card.is-current {
    outline: 2px solid rgba(29, 78, 216, 0.45);
    outline-offset: 1px;
    pointer-events: none;
}
.gate-related-card img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #eef2f7;
}
.gate-related-card strong,
.gate-related-card span {
    display: block;
    padding: 0 0.85rem;
}
.gate-related-card strong {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    word-break: keep-all;
}
.gate-related-card span {
    margin: 0.25rem 0 0.9rem;
    color: #64748b;
    font-size: 0.78rem;
}

.gate-cta {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    text-align: center;
    background: linear-gradient(160deg, #07142e, #0b2250);
    color: #fff;
}
.gate-cta h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    letter-spacing: -0.03em;
    word-break: keep-all;
}
.gate-cta p {
    margin: 0 auto 1.5rem;
    max-width: 34em;
    color: #cbd5e1;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .gate-status-grid,
    .gate-feature-grid,
    .gate-hw-grid,
    .gate-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gate-venue-grid,
    .gate-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gate-scope-grid { grid-template-columns: 1fr; }
    .gate-hw-card__media {
        height: 230px;
        min-height: 220px;
    }
}
@media (max-width: 767px) {
    .validation-flow {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .validation-flow__connector {
        display: grid;
        width: 100%;
        height: 30px;
        justify-self: stretch;
    }
    .validation-flow__line {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: 100%;
    }
    .validation-flow__pulse {
        left: 50%;
        top: 0;
        margin-top: 0;
        transform: translate(-50%, 0);
    }
    .validation-flow__connector.is-active .validation-flow__pulse {
        animation: validationPulseVertical 760ms ease-in-out both;
    }
    .validation-flow__arrow {
        transform: rotate(90deg);
    }
    .validation-flow__step {
        min-height: 0;
        width: min(18rem, 100%);
        justify-self: center;
    }
}
@media (max-width: 640px) {
    .gate-status-grid,
    .gate-feature-grid,
    .gate-hw-grid,
    .gate-related-grid,
    .gate-venue-grid,
    .gate-check-grid { grid-template-columns: 1fr; }
    .gate-compare-table-wrap { display: none; }
    .gate-compare-cards { display: grid; }
    .gate-spec > div { grid-template-columns: 1fr; gap: 0.15rem; }
    .gate-hw-card__media {
        height: 220px;
        min-height: 220px;
    }
    .validation-flow__toolbar {
        flex-wrap: wrap;
    }
}
@keyframes validationPulseVertical {
    from { transform: translate(-50%, 0); }
    to { transform: translate(-50%, 22px); }
}
@media (prefers-reduced-motion: reduce) {
    .validation-flow__step,
    .validation-flow__media img,
    .validation-flow__pulse {
        transition: none !important;
        animation: none !important;
    }
}
