/* ========== Base ========== */
* {
    box-sizing: border-box;
}

:root {
    --bg: #0e0e0f;
    --bg-soft: #131318;
    --card: #15151b;
    --line: #23232b;
    --text: #e9eaee;
    --muted: #9aa0ad;
    --accent: #2e7dff;
    --accent-2: #4cc2ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .20);
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans KR", sans-serif;
    color: #0f1115;
    background: #fff;
}

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

/* Utils */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 56px 16px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========== Topbar ========== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    backdrop-filter: saturate(130%) blur(4px);
}

.topbar .brand {
    font-weight: 800;
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu a {
    opacity: .9;
    transition: opacity .25s, transform .25s;
}

.menu a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.menu .cta {
    padding: 8px 12px;
    border: 1px solid var(--accent);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(46, 125, 255, .15);
}

/* ========== Buttons ========== */
.btn-primary {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px rgba(46, 125, 255, .35);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: saturate(1.1);
}

.btn-outline {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 12px;
    color: var(--accent);
    border: 1px solid var(--accent);
    background: #fff;
    transition: background .2s, color .2s, transform .2s;
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ========== Hero ========== */
.hero {
    height: 56vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .55));
}

.hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    animation: fadeUp .7s ease both .05s;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 36px;
    letter-spacing: .2px;
}

.hero p {
    margin: 0 0 20px;
    opacity: .95;
}

/* Hero dots */
.dots {
    margin-top: 16px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9fb6ff;
    opacity: .6;
    animation: float 3.2s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: .2s;
}

.dot:nth-child(3) {
    animation-delay: .4s;
}

.dot.active {
    opacity: 1;
}

/* ========== Stats ========== */
.stats {
    background: #fff;
}

.stats h2 {
    margin: 0 0 24px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: center;
}

.stats-graph img {
    width: 100%;
    max-width: 660px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fadeUp .6s ease both .1s;
}

.rate {
    background: #f7f8fb;
    border: 1px solid #ebedf2;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 8px 20px rgba(20, 25, 40, .05);
    animation: fadeUp .6s ease both .18s;
}

.rate .label {
    color: #6b7280;
    margin-bottom: 6px;
}

.rate .num {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: .2px;
}

.rate .num span {
    font-size: 18px;
}

.rank {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.rank li {
    padding: 8px 0;
    border-bottom: 1px solid #eceff3;
}

/* ========== Public Proof Docs ========== */
.proof {
    background: #f5f6f8;
}

.docs {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px 0 22px;
}

.docs img {
    width: 180px;
    height: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
    transform-origin: center;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: fadeUp .55s ease both;
}

.docs img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}

/* ========== Partners ========== */
.partners {
    background: #fff;
}

.partners h2 {
    text-align: center;
    margin: 0 0 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.cell {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: fadeUp .45s ease both;
}

.cell:hover {
    transform: translateY(-4px);
    border-color: #dfe6ff;
    box-shadow: 0 14px 28px rgba(46, 125, 255, .12);
}

.cell img {
    max-width: 120px;
    height: auto;
    opacity: .95;
    filter: saturate(.98);
}

/* ========== Footer ========== */
.footer {
    background: var(--bg);
    color: #cfcfd4;
    margin-top: 40px;
}

.footer .wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
    padding: 28px 20px;
    max-width: 1160px;
    margin: 0 auto;
}

.footer .brand {
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.badges img {
    height: 42px;
    margin-right: 10px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .2));
}

.copy {
    border-top: 1px solid #1d1e23;
    text-align: center;
    padding: 12px 0;
    color: #858792;
}

/* ========== Auth (Login/Register 공용) ========== */
.auth {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.auth-card {
    width: 360px;
    padding: 28px 22px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    animation: fadeUp .4s ease both;
}

.auth-card h2 {
    margin: 0 0 12px;
}

.auth-card input {
    width: 100%;
    padding: 12px 12px;
    margin: 8px 0;
    border-radius: 10px;
    border: 1px solid #2a2a33;
    background: #101014;
    color: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.auth-card input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}

.auth-card .btn-primary {
    width: 100%;
    margin-top: 8px;
}

.muted {
    color: #9b9ba3;
}

/* ========== Animations ========== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        height: 50vh;
    }
}

@media (max-width: 560px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .docs img {
        width: 46%;
    }
}