* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #0f172a;
    font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f6f8fc;
}

.gateway-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 20px;
    background:
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #f8fbff 0%, #edf4ff 44%, #f7f9fd 100%);
    background-size: 64px 64px, 64px 64px, auto;
}

.gateway-hero {
    width: min(1180px, 100%);
}

.gateway-copy {
    margin-bottom: 34px;
}

.gateway-copy p,
.placeholder-panel p {
    margin: 0 0 12px;
    color: #2563eb;
    font-size: 15px;
    font-weight: 900;
}

.gateway-copy h1,
.placeholder-panel h1 {
    margin: 0;
    color: #07111f;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.12;
}

.gateway-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gateway-service-card {
    position: relative;
    isolation: isolate;
    min-height: 270px;
    display: grid;
    align-content: end;
    gap: 12px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid #d7e3f3;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.12);
}

.gateway-service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 52%);
    pointer-events: none;
}

.gateway-service-card::after {
    content: "";
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e8f0ff;
    box-shadow: inset 0 0 0 12px #ffffff;
    pointer-events: none;
}

.gateway-service-card:hover {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 24px 52px rgba(37, 99, 235, 0.16);
}

.gateway-service-card span {
    position: relative;
    z-index: 1;
    color: #2563eb;
    font-size: 14px;
    font-weight: 900;
}

.gateway-service-card strong {
    position: relative;
    z-index: 1;
    color: #0f172a;
    font-size: 28px;
    font-weight: 900;
}

.gateway-service-card small {
    position: relative;
    z-index: 1;
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.gateway-service-card.korean::before {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), transparent 52%);
}

.gateway-service-card.korean span {
    color: #dc2626;
}

.gateway-service-card.english::before {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), transparent 52%);
}

.gateway-service-card.english span {
    color: #15803d;
}

.placeholder-panel {
    width: min(760px, 100%);
    padding: 46px;
    border: 1px solid #d7e3f3;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.placeholder-panel span {
    display: block;
    margin-top: 18px;
    color: #475569;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
}

.placeholder-back,
.placeholder-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
}

.placeholder-back {
    margin-bottom: 28px;
    border: 1px solid #d7e3f3;
    background: #ffffff;
    color: #475569;
}

.placeholder-primary {
    margin-top: 28px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.service-placeholder-page.korean .placeholder-panel p {
    color: #dc2626;
}

.service-placeholder-page.english .placeholder-panel p {
    color: #15803d;
}

@media (max-width: 860px) {
    .gateway-copy h1,
    .placeholder-panel h1 {
        font-size: 38px;
    }

    .gateway-service-grid {
        grid-template-columns: 1fr;
    }

    .gateway-service-card {
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    .gateway-page {
        padding: 30px 14px;
    }

    .gateway-copy h1,
    .placeholder-panel h1 {
        font-size: 30px;
    }

    .gateway-service-card,
    .placeholder-panel {
        padding: 22px;
    }
}
