:root {
    --service-ink: #18251f;
    --service-paper: #f3efe7;
    --service-surface: #ffffff;
    --service-rose: #d66f84;
    --service-acid: #dce66f;
    --service-line: rgba(24, 37, 31, 0.16);
    --service-muted: #667069;
    --service-radius: 18px;
    --service-shadow: 0 24px 80px rgba(24, 37, 31, 0.14);
    font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
    color: var(--service-ink);
    background: var(--service-paper);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--service-paper);
    color: var(--service-ink);
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

img {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(213, 110, 130, 0.35);
    outline-offset: 2px;
}

.button-primary {
    background: var(--service-ink);
    color: #fff;
}

.button-primary:hover {
    background: #293c32;
}

.button-light {
    background: #fff;
    color: var(--service-ink);
}

.button-ghost {
    border-color: var(--service-line);
    background: transparent;
    color: var(--service-ink);
}

.button-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
}

.button-small {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
}

.button-full {
    width: 100%;
}

.service-header {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(22px, 4vw, 64px);
    border-bottom: 1px solid var(--service-line);
}

.service-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.service-brand b {
    display: block;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.service-brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--service-ink);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 20px;
    font-style: italic;
}

.service-footer {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px clamp(22px, 4vw, 64px);
    border-top: 1px solid var(--service-line);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.service-footer span:last-child {
    color: var(--service-muted);
    font-weight: 500;
    letter-spacing: 0;
}

.global-flashes {
    position: fixed;
    z-index: 100;
    top: 92px;
    right: 24px;
    width: min(420px, calc(100vw - 48px));
}

.flash {
    margin-bottom: 10px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 650;
}

.flash-success {
    background: #1f4636;
    color: #fff;
}

.flash-error {
    background: #8a3344;
    color: #fff;
}

/* Landing */
.landing {
    overflow: hidden;
}

.landing-hero {
    display: grid;
    min-height: min(860px, calc(100vh - 78px));
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    border-bottom: 1px solid var(--service-line);
}

.landing-hero-copy {
    display: flex;
    max-width: 800px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(70px, 9vw, 150px) clamp(28px, 7vw, 110px);
}

.eyebrow {
    display: block;
    margin-bottom: 28px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.landing-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(52px, 6vw, 100px);
    font-weight: 850;
    letter-spacing: -0.075em;
    line-height: 0.98;
}

.landing-hero h1 em {
    color: var(--service-rose);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.landing-hero-copy > p {
    max-width: 570px;
    margin: 38px 0;
    color: #46524b;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.8;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.landing-login-note {
    color: var(--service-muted);
    font-size: 12px;
}

.landing-stage {
    position: relative;
    display: grid;
    min-height: 680px;
    place-items: center;
    overflow: hidden;
    background: var(--service-ink);
}

.landing-stage::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
}

.landing-orbit {
    position: absolute;
    border: 1px solid rgba(220, 230, 111, 0.2);
    border-radius: 50%;
}

.orbit-one {
    width: 620px;
    height: 620px;
}

.orbit-two {
    width: 880px;
    height: 880px;
}

.landing-browser {
    position: relative;
    z-index: 2;
    width: min(78%, 720px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 14px;
    background: #f4f0e8;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.48);
    transform: rotate(-2deg);
}

.landing-browser-bar {
    display: flex;
    height: 38px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(24,37,31,.12);
    background: #ede7dc;
}

.landing-browser-bar i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d56e82;
}

.landing-browser-bar i:nth-child(2) { background: #d9e56d; }
.landing-browser-bar i:nth-child(3) { background: #8a9f93; }
.landing-browser-bar span {
    margin-left: auto;
    margin-right: auto;
    color: #7a7f7b;
    font-size: 7px;
}

.mock-nav {
    display: flex;
    height: 52px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid rgba(24,37,31,.16);
    font-size: 6px;
    letter-spacing: .08em;
}

.mock-nav b {
    font-size: 9px;
}

.mock-hero {
    display: grid;
    min-height: 330px;
    grid-template-columns: 1fr 1.04fr;
}

.mock-hero > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
}

.mock-hero small {
    font-size: 6px;
    letter-spacing: .2em;
}

.mock-hero strong {
    margin-top: 20px;
    font-size: clamp(22px, 3vw, 43px);
    letter-spacing: -.08em;
    line-height: 1.05;
}

.mock-hero > div:first-child i {
    width: 50px;
    height: 2px;
    margin-top: 30px;
    background: var(--service-rose);
}

.mock-bottle {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: #315043;
}

.mock-bottle::before {
    width: 72px;
    height: 235px;
    border-radius: 16px 16px 8px 8px;
    background: linear-gradient(90deg, #121916, #37433d 50%, #101613);
    box-shadow: 0 30px 45px rgba(0,0,0,.28);
    content: "";
}

.mock-bottle::after {
    position: absolute;
    bottom: 68px;
    width: 76px;
    height: 72px;
    border: 1px solid rgba(25,38,31,.2);
    background: #efeadf;
    content: "";
}

.mock-bottle span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: rgba(255,255,255,.65);
    font-size: 6px;
    letter-spacing: .1em;
    line-height: 1.5;
}

.landing-float-card {
    position: absolute;
    z-index: 3;
    padding: 14px 17px;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    font-size: 8px;
    letter-spacing: .1em;
    line-height: 1.7;
}

.float-theme {
    top: 18%;
    right: 4%;
    background: var(--service-acid);
    color: var(--service-ink);
    transform: rotate(4deg);
}

.float-live {
    bottom: 17%;
    left: 5%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--service-ink);
}

.float-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35a26f;
    box-shadow: 0 0 0 4px rgba(53,162,111,.13);
}

.landing-ticker {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-around;
    gap: 28px;
    overflow: hidden;
    background: var(--service-rose);
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(16px, 2vw, 28px);
    font-style: italic;
    white-space: nowrap;
}

.landing-ticker i {
    color: var(--service-acid);
    font-style: normal;
}

.landing-features {
    padding: clamp(90px, 11vw, 170px) clamp(24px, 6vw, 100px);
}

.landing-section-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    margin-bottom: 80px;
}

.landing-section-head > span,
.landing-theme-copy > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.landing-section-head h2,
.landing-theme-copy h2 {
    margin: 0;
    font-size: clamp(42px, 5vw, 76px);
    letter-spacing: -.065em;
    line-height: 1.05;
}

.feature-grid {
    display: grid;
    border-top: 1px solid var(--service-line);
    border-left: 1px solid var(--service-line);
    grid-template-columns: repeat(4, 1fr);
}

.feature-grid article {
    min-height: 330px;
    padding: 28px;
    border-right: 1px solid var(--service-line);
    border-bottom: 1px solid var(--service-line);
}

.feature-grid article > span {
    color: var(--service-rose);
    font-size: 11px;
    font-weight: 800;
}

.feature-grid h3 {
    margin: 120px 0 18px;
    font-size: 21px;
    letter-spacing: -.04em;
}

.feature-grid p {
    margin: 0;
    color: var(--service-muted);
    font-size: 14px;
    line-height: 1.75;
}

.landing-themes {
    display: grid;
    min-height: 800px;
    grid-template-columns: 1.15fr .85fr;
    background: var(--service-ink);
    color: #fff;
}

.theme-rail {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: clamp(42px, 6vw, 90px);
    transform: rotate(-3deg) scale(1.05);
}

.theme-poster {
    position: relative;
    display: flex;
    min-height: 290px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px;
    color: #171717;
}

.theme-poster span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
}

.theme-poster b {
    font-size: clamp(32px, 4vw, 64px);
    letter-spacing: -.08em;
    line-height: .85;
}

.theme-poster i {
    align-self: flex-end;
    font-family: Georgia, serif;
    font-size: 16px;
}

.theme-poster::after {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
}

.theme-poster-one { background: #f4f0e8; }
.theme-poster-one::after { top: 30px; right: -40px; }
.theme-poster-two { background: #d9e56d; }
.theme-poster-two::after { bottom: -50px; left: -30px; }
.theme-poster-three { background: #e8a5b5; }
.theme-poster-three::after { top: -40px; left: 25%; }
.theme-poster-four { background: #5b37ff; color: #fff; }
.theme-poster-four::after { right: 20px; bottom: 20px; border-radius: 0; transform: rotate(25deg); }

.landing-theme-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(60px, 8vw, 120px);
    border-left: 1px solid rgba(255,255,255,.16);
}

.landing-theme-copy h2 {
    margin-top: 45px;
}

.landing-theme-copy h2 em {
    color: var(--service-acid);
    font-family: Georgia, serif;
    font-weight: 400;
}

.landing-theme-copy p {
    max-width: 520px;
    margin: 40px 0 0;
    color: rgba(255,255,255,.65);
    font-size: 16px;
    line-height: 1.85;
}

.landing-cta {
    display: flex;
    min-height: 680px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    background: var(--service-rose);
    color: #fff;
    text-align: center;
}

.landing-cta > span {
    margin-bottom: 40px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.landing-cta h2 {
    margin: 0 0 50px;
    font-size: clamp(52px, 7vw, 110px);
    letter-spacing: -.08em;
    line-height: .98;
}

/* Auth and errors */
.auth-shell {
    display: grid;
    min-height: calc(100vh - 170px);
    grid-template-columns: 1.15fr .85fr;
}

.auth-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(70px, 9vw, 150px);
}

.auth-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 5vw, 78px);
    letter-spacing: -.07em;
    line-height: 1.08;
}

.auth-copy > p {
    max-width: 650px;
    margin: 36px 0 48px;
    color: var(--service-muted);
    font-size: 17px;
    line-height: 1.8;
}

.auth-steps {
    display: grid;
    max-width: 680px;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--service-line);
    list-style: none;
}

.auth-steps li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--service-line);
    font-size: 14px;
    font-weight: 650;
}

.auth-steps span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--service-surface);
    color: var(--service-rose);
    font-size: 11px;
}

.auth-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: clamp(45px, 8vw, 120px);
    background: var(--service-ink);
    color: #fff;
    text-align: center;
}

.auth-card-label {
    color: rgba(255,255,255,.5);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.auth-lock {
    display: grid;
    width: 94px;
    height: 94px;
    margin: 42px auto 30px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
    color: var(--service-acid);
    font-family: Georgia, serif;
    font-size: 44px;
    font-style: italic;
}

.auth-card h2 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -.04em;
}

.auth-card > p {
    margin: 14px auto 32px;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.7;
}

.auth-card .button-primary {
    min-height: 58px;
    background: var(--service-acid);
    color: var(--service-ink);
}

.auth-card > small {
    margin-top: 20px;
    color: rgba(255,255,255,.4);
    font-size: 10px;
}

.dev-notice,
.auth-unavailable {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.72);
    font-size: 11px;
    line-height: 1.6;
}

.dev-notice b {
    margin-right: 5px;
    color: var(--service-acid);
    letter-spacing: .12em;
}

.auth-post-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    text-align: center;
}

.auth-post-page main {
    padding: 40px;
}

.auth-post-page h1 {
    margin: 28px 0 10px;
    font-size: 26px;
}

.auth-post-page p {
    color: var(--service-muted);
}

.auth-spinner {
    display: block;
    width: 54px;
    height: 54px;
    margin: auto;
    border: 3px solid rgba(24,37,31,.12);
    border-top-color: var(--service-rose);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

.auth-post-page form {
    margin-top: 24px;
}

.error-card {
    display: flex;
    min-height: calc(100vh - 170px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 24px;
    text-align: center;
}

.error-code {
    color: var(--service-rose);
    font-family: Georgia, serif;
    font-size: clamp(74px, 12vw, 160px);
    font-style: italic;
    line-height: 1;
}

.error-card h1 {
    margin: 26px 0 14px;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -.05em;
}

.error-card p {
    max-width: 680px;
    margin: 0 0 30px;
    color: var(--service-muted);
    line-height: 1.7;
}

.error-actions {
    display: flex;
    gap: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-stage {
        min-height: 650px;
    }

    .landing-section-head {
        gap: 30px;
        grid-template-columns: 1fr;
    }

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

    .landing-themes {
        grid-template-columns: 1fr;
    }

    .landing-theme-copy {
        border-top: 1px solid rgba(255,255,255,.16);
        border-left: 0;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .service-header {
        min-height: 66px;
        padding: 12px 18px;
    }

    .service-header > .button {
        display: none;
    }

    .service-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-hero-copy {
        padding: 80px 22px;
    }

    .landing-hero h1 {
        font-size: clamp(46px, 14vw, 68px);
    }

    .landing-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-stage {
        min-height: 510px;
    }

    .landing-browser {
        width: 88%;
    }

    .mock-hero {
        min-height: 260px;
    }

    .mock-hero > div:first-child {
        padding: 18px;
    }

    .landing-float-card {
        display: none;
    }

    .landing-ticker {
        justify-content: flex-start;
        padding-left: 20px;
    }

    .landing-features {
        padding: 80px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid article {
        min-height: 260px;
    }

    .feature-grid h3 {
        margin-top: 70px;
    }

    .theme-rail {
        gap: 8px;
        padding: 36px 22px;
    }

    .theme-poster {
        min-height: 190px;
        padding: 15px;
    }

    .landing-theme-copy {
        padding: 70px 24px;
    }

    .landing-cta {
        min-height: 560px;
    }

    .auth-copy,
    .auth-card {
        padding: 70px 24px;
    }

    .error-actions {
        width: 100%;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
