:root {
    --bg: #080911;
    --panel: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --muted: #9aa7bd;
    --pink: #ff3df2;
    --cyan: #28e7ff;
    --lime: #b7ff36;
    --violet: #8b5cf6;
    --shadow: rgba(255, 61, 242, 0.35);
    --font: 'Inter', 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--font);
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 61, 242, 0.2), transparent 28rem),
        radial-gradient(circle at 88% 14%, rgba(40, 231, 255, 0.17), transparent 24rem),
        linear-gradient(135deg, #06070d 0%, #121327 55%, #070812 100%);
}

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

.site-header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem clamp(1.25rem, 4vw, 4rem);
    background: rgba(8, 9, 17, 0.66);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
}

.brand span {
    color: var(--pink);
}

.header-link {
    color: var(--muted);
    font-weight: 700;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.4rem);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.header-nav a {
    transition: color 160ms ease, text-shadow 160ms ease;
}

.header-nav a:hover {
    color: var(--text);
    text-shadow: 0 0 18px rgba(40, 231, 255, 0.65);
}

.hero {
    width: min(1180px, 100%);
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: 8rem clamp(1.25rem, 4vw, 4rem) 4rem;
    margin: 0 auto;
}

.hero-copy,
.phone-stage {
    min-width: 0;
}

.eyebrow {
    color: var(--cyan);
    margin: 0 0 1rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(3.4rem, 16vw, 8.5rem);
    line-height: 0.88;
    margin-bottom: 1.4rem;
    text-shadow:
        0 0 18px rgba(255, 61, 242, 0.7),
        0 0 46px rgba(40, 231, 255, 0.3);
}

.lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    max-width: 34rem;
    margin-bottom: 1.2rem;
    overflow-wrap: break-word;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.hero-badges span {
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(40, 231, 255, 0.22);
    border-radius: 999px;
    color: var(--text);
    background: rgba(40, 231, 255, 0.08);
    font-size: 0.86rem;
    font-weight: 800;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border-radius: 0.9rem;
    font-weight: 800;
    border: 1px solid var(--line);
}

.btn.primary {
    background: linear-gradient(135deg, var(--pink), var(--violet));
    box-shadow: 0 0 28px var(--shadow);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.package {
    color: var(--muted);
    font-size: 0.9rem;
}

.phone-stage {
    display: grid;
    place-items: center;
}

.phone {
    width: min(330px, 86vw);
    aspect-ratio: 9 / 17.5;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2.4rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
        #111225;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(40, 231, 255, 0.22);
}

.phone::before,
.phone::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 61, 242, 0.7), rgba(40, 231, 255, 0.6), rgba(183, 255, 54, 0.35));
    filter: blur(18px);
    opacity: 0.28;
}

.phone::after {
    inset: 7%;
    filter: blur(42px);
    opacity: 0.22;
}

.phone-bar {
    width: 5rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.app-icon {
    width: 5.4rem;
    height: 5.4rem;
    border-radius: 1.3rem;
    box-shadow: 0 0 34px rgba(255, 61, 242, 0.45);
}

.score-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: var(--panel);
    color: var(--lime);
    font-weight: 800;
}

.score-row strong {
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    color: var(--bg);
    border-radius: 50%;
    background: var(--lime);
}

.guess-panel {
    width: 100%;
    display: grid;
    gap: 0.8rem;
}

.guess-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.guess-card span {
    font-size: 1.5rem;
    font-weight: 800;
}

.guess-card b {
    color: var(--cyan);
}

.guess-card.win {
    border-color: rgba(255, 61, 242, 0.5);
    box-shadow: inset 0 0 20px rgba(255, 61, 242, 0.12);
}

.cta-pill {
    width: 100%;
    margin-top: auto;
    padding: 0.9rem;
    border-radius: 999px;
    text-align: center;
    font-weight: 800;
    color: #070812;
    background: var(--cyan);
}

.quick-stats {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 4rem) 5rem;
}

.quick-stats div {
    min-height: 7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

.quick-stats strong {
    color: var(--lime);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
    text-shadow: 0 0 22px rgba(183, 255, 54, 0.36);
}

.quick-stats span {
    margin-top: 0.55rem;
    color: var(--muted);
    font-weight: 800;
}

.section-heading {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 4rem) 1.3rem;
}

.section-heading h2 {
    max-width: 48rem;
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
    max-width: 44rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading.compact {
    padding: 0;
}

.section-heading.compact h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.features {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 4rem) 5rem;
}

.features article,
.details,
.mode-section,
.rule-flow,
.support-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    padding: 1.4rem;
    backdrop-filter: blur(16px);
}

.features span {
    color: var(--pink);
    font-weight: 800;
}

.features h2,
.details h2 {
    margin: 0.5rem 0 0.7rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.features p,
.details p {
    color: var(--muted);
    margin-bottom: 0;
}

.mode-section {
    width: min(1180px, calc(100% - 2.5rem));
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
    margin: 0 auto 1rem;
    padding: clamp(1.4rem, 4vw, 2rem);
}

.mode-copy h2,
.support-section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

.mode-copy p:not(.eyebrow),
.support-section p {
    color: var(--muted);
    margin-bottom: 0;
}

.mode-list {
    display: grid;
    gap: 0.75rem;
}

.mode-list article {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
}

.mode-list b {
    color: var(--pink);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.mode-list h3,
.rule-flow h3 {
    margin: 0.35rem 0 0.45rem;
}

.mode-list p,
.rule-flow p {
    color: var(--muted);
    margin-bottom: 0;
}

.details {
    width: min(1180px, calc(100% - 2.5rem));
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: center;
    margin: 0 auto 1rem;
}

.rule-flow {
    width: min(1180px, calc(100% - 2.5rem));
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    margin: 0 auto 1rem;
    padding: clamp(1.4rem, 4vw, 2rem);
}

.rule-flow ol {
    display: grid;
    gap: 0.9rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rule-flow li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(8, 9, 17, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.rule-flow li > span {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #070812;
    background: var(--cyan);
    box-shadow: 0 0 24px rgba(40, 231, 255, 0.34);
    font-weight: 800;
}

.support-section {
    width: min(1180px, calc(100% - 2.5rem));
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    gap: clamp(1.4rem, 4vw, 2.5rem);
    align-items: center;
    margin: 0 auto 5rem;
    padding: clamp(1.4rem, 4vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 61, 242, 0.12), rgba(40, 231, 255, 0.08)),
        var(--panel);
}

.support-section aside {
    display: grid;
    gap: 0.75rem;
}

.support-section aside a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.2rem;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-weight: 800;
}

.support-section aside a::after {
    content: ">";
    color: var(--cyan);
}

.legal-page {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 7.5rem clamp(1.25rem, 4vw, 4rem) 5rem;
}

.legal-document {
    padding: clamp(1.4rem, 4vw, 3rem);
    border-radius: 1.4rem;
    background: var(--panel);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.legal-document h1 {
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.legal-document h2 {
    margin: 2.2rem 0 0.8rem;
    color: var(--cyan);
    font-size: 1.25rem;
}

.legal-document p,
.legal-document li {
    color: var(--muted);
}

.legal-document ul,
.legal-document ol {
    padding-left: 1.2rem;
}

.legal-document li {
    margin-bottom: 0.55rem;
}

.legal-document a {
    color: var(--cyan);
    font-weight: 800;
}

.updated {
    color: var(--pink);
    font-weight: 800;
    margin-bottom: 2rem;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem clamp(1.25rem, 4vw, 4rem);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

footer nav {
    display: flex;
    gap: 1rem;
}

footer a {
    color: var(--text);
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 6.5rem;
        min-height: auto;
        gap: 2.6rem;
    }

    .quick-stats,
    .features,
    .details,
    .mode-section,
    .rule-flow,
    .support-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-header,
    footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.1rem;
        font-size: 0.84rem;
    }

    .actions,
    .actions .btn {
        width: 100%;
    }

    .hero {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-copy,
    .actions {
        width: 100%;
        max-width: 100%;
    }

    .hero-copy,
    .phone-stage {
        padding-right: 1.25rem;
    }

    .actions {
        padding-right: 0;
    }

    .actions .btn {
        width: calc(100% - 1.25rem);
    }

    h1 {
        font-size: clamp(3.05rem, 15vw, 3.6rem);
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .phone {
        width: min(280px, 82vw);
    }
}
