* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #17202e;
    background: #f4f7fb;
    font-family: 'Noto Sans KR', 'Noto Sans', Arial, sans-serif;
}

body.viewer-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 0 48px;
    border-bottom: 1px solid rgba(132, 148, 168, .28);
    background: rgba(244, 247, 251, .92);
    backdrop-filter: blur(12px);
}

.brand,
.public-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    color: #101828;
    font-weight: 900;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    background: #1f376d;
}

.public-nav {
    gap: 22px;
    color: #475467;
    font-size: .92rem;
    font-weight: 800;
}

.login-link,
.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 900;
}

.login-link,
.primary-action {
    color: #fff;
    background: #1f376d;
}

.secondary-action {
    border: 1px solid #c8d3df;
    color: #243f7f;
    background: #fff;
}

main {
    overflow: hidden;
}

.hero-section,
.feature-section,
.preview-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: 44px;
    align-items: center;
    min-height: calc(100svh - 68px);
    padding: 54px 0;
}

.eyebrow {
    margin: 0 0 10px;
    color: #1a8f5a;
    font-size: .88rem;
    font-weight: 900;
}

.hero-copy h1,
.section-head h2,
.preview-section h2 {
    margin: 0;
    color: #101828;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy h1 {
    font-size: 3.25rem;
    line-height: 1.08;
}

.hero-description,
.preview-section p {
    color: #5f6b7a;
    line-height: 1.7;
}

.hero-description {
    margin: 20px 0 0;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.dashboard-preview {
    min-width: 0;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(15, 23, 42, .14);
}

.preview-topbar {
    display: flex;
    gap: 8px;
    padding-bottom: 14px;
}

.preview-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9e2ec;
}

.preview-topbar span:first-child {
    background: #f27a2e;
}

.preview-topbar span:nth-child(2) {
    background: #f9b115;
}

.preview-topbar span:nth-child(3) {
    background: #1a8f5a;
}

.preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.preview-metrics div,
.preview-ranking,
.preview-chart {
    border: 1px solid #e4ebf2;
    border-radius: 8px;
    background: #fbfcfe;
}

.preview-metrics div {
    padding: 14px;
}

.preview-metrics span {
    display: block;
    color: #667085;
    font-size: .76rem;
    font-weight: 800;
}

.preview-metrics strong {
    display: block;
    margin-top: 6px;
    color: #101828;
    font-size: 1rem;
}

.preview-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 12px;
    margin-top: 12px;
}

.preview-ranking {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.preview-ranking > strong {
    color: #101828;
    font-size: .95rem;
}

.preview-ranking div {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.preview-ranking span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    background: #1f376d;
    font-size: .76rem;
    font-weight: 900;
}

.preview-ranking p {
    overflow: hidden;
    margin: 0;
    color: #344054;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-ranking em {
    color: #1a5f3f;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.preview-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    min-height: 220px;
    padding: 18px;
}

.preview-chart span {
    flex: 1;
    min-width: 12px;
    border-radius: 6px 6px 0 0;
    background: #f27a2e;
}

.preview-chart span:nth-child(even) {
    background: #8ec7d2;
}

.feature-section,
.preview-section {
    padding: 76px 0;
}

.section-head {
    max-width: 680px;
    margin-bottom: 24px;
}

.section-head h2,
.preview-section h2 {
    font-size: 2rem;
    line-height: 1.25;
}

.feature-grid {
    display: grid;
    gap: 16px;
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.preview-group,
.screen-shot-card {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.feature-grid article {
    padding: 20px;
}

.feature-grid strong {
    display: block;
    color: #101828;
    font-size: 1.02rem;
    font-weight: 900;
}

.feature-grid ul {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.feature-grid li {
    padding-top: 14px;
    border-top: 1px solid #e4ebf2;
}

.feature-grid b {
    display: block;
    color: #1f376d;
    font-size: .94rem;
}

.feature-grid li span {
    display: block;
    margin-top: 6px;
    color: #5f6b7a;
    font-size: .92rem;
    line-height: 1.65;
}

.preview-section p {
    margin: 14px 0 0;
}

.preview-head {
    max-width: 760px;
}

.preview-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.preview-group {
    padding: 20px;
}

.preview-group-head span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #1f376d;
    background: #edf3fa;
    font-size: .82rem;
    font-weight: 900;
}

.preview-group-head strong {
    display: block;
    margin-top: 10px;
    color: #101828;
    font-size: 1.08rem;
    font-weight: 900;
}

.screen-card-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.screen-shot-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #fbfcfe;
    box-shadow: none;
}

.screen-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 148px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
    cursor: zoom-in;
}

.screen-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .18s ease;
}

.screen-placeholder:hover img,
.screen-placeholder:focus-visible img {
    transform: scale(1.025);
}

.screen-placeholder:focus-visible,
.viewer-close:focus-visible,
.viewer-nav:focus-visible {
    outline: 3px solid rgba(31, 55, 109, .35);
    outline-offset: 3px;
}

.screen-shot-card p {
    margin: 0;
    color: #101828;
    font-size: .98rem;
    font-weight: 900;
}

.public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 84px;
    padding: 0 48px;
    border-top: 1px solid #d9e2ec;
    color: #667085;
    background: #fff;
}

.public-footer strong {
    color: #101828;
}

.screen-viewer[hidden] {
    display: none;
}

.screen-viewer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 28px;
}

.screen-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, .78);
    backdrop-filter: blur(6px);
}

.screen-viewer-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1500px, 100%);
    height: min(900px, calc(100vh - 56px));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.screen-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 14px 18px;
    border-bottom: 1px solid #d9e2ec;
}

.screen-viewer-toolbar span {
    display: block;
    color: #667085;
    font-size: .8rem;
    font-weight: 900;
}

.screen-viewer-toolbar h2 {
    margin: 2px 0 0;
    color: #101828;
    font-size: 1.08rem;
    line-height: 1.3;
}

.viewer-close,
.viewer-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: #101828;
    background: #edf3fa;
    cursor: pointer;
}

.viewer-close {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.8rem;
    line-height: 1;
}

.screen-viewer-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 20px 74px;
    background: #f4f7fb;
}

.screen-viewer-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 64px;
    border-radius: 8px;
    font-size: 2.4rem;
    transform: translateY(-50%);
}

.viewer-prev {
    left: 18px;
}

.viewer-next {
    right: 18px;
}

@media (max-width: 991px) {
    .public-header {
        padding: 0 24px;
    }

    .public-nav a:not(.login-link) {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .preview-content {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .preview-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .public-header {
        padding: 0 16px;
    }

    .brand span:last-child {
        display: none;
    }

    .hero-section,
    .feature-section,
    .preview-section {
        width: min(100% - 28px, 1180px);
    }

    .hero-section {
        padding: 34px 0;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .preview-metrics,
    .preview-content,
    .feature-grid,
    .preview-gallery {
        grid-template-columns: 1fr;
    }

    .screen-viewer {
        padding: 12px;
    }

    .screen-viewer-dialog {
        height: min(760px, calc(100vh - 24px));
    }

    .screen-viewer-stage {
        padding: 14px 12px 72px;
    }

    .viewer-nav {
        top: auto;
        bottom: 12px;
        width: 44px;
        height: 44px;
        font-size: 2rem;
        transform: none;
    }

    .viewer-prev {
        left: calc(50% - 52px);
    }

    .viewer-next {
        right: calc(50% - 52px);
    }

    .public-footer {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .screen-placeholder img {
        transition: none;
    }
}
