:root {
    --welcome-ink: #17181c;
    --welcome-muted: #74767d;
    --welcome-line: rgba(23, 24, 28, 0.12);
    --welcome-rose: #c66c8e;
    --welcome-rose-soft: #f6e8ee;
    --welcome-lavender: #8b7ab1;
    --welcome-lavender-soft: #eee9f6;
    --welcome-amber: #c78b4d;
    --welcome-amber-soft: #fbefdf;
}

.welcome-page {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 20px;
    color: var(--welcome-ink);
    background: #efeff1;
}

.welcome-page ::selection {
    color: var(--welcome-ink);
    background: var(--welcome-rose-soft);
}

.welcome-shell {
    position: relative;
    display: grid;
    width: min(390px, 100%);
    height: min(844px, calc(100vh - 40px));
    height: min(844px, calc(100dvh - 40px));
    min-height: 680px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding: max(26px, env(safe-area-inset-top)) 22px max(26px, env(safe-area-inset-bottom));
    border: 1px solid #e7e7e8;
    border-radius: 28px;
    background: #fbfbfc;
    box-shadow: 0 18px 54px rgba(17, 19, 24, 0.11);
    isolation: isolate;
}

.welcome-atmosphere {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 16% 14%, rgba(232, 241, 244, 0.92), transparent 31%),
        radial-gradient(circle at 86% 18%, rgba(247, 231, 237, 0.94), transparent 30%),
        radial-gradient(circle at 50% 48%, rgba(250, 239, 222, 0.72), transparent 39%),
        linear-gradient(180deg, #fbfbfc 0%, #fff 64%, #f7f7f8 100%);
}

.welcome-header {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.welcome-wordmark {
    color: var(--welcome-ink);
    font-size: 1.22rem;
    font-weight: var(--wordmark-font-weight);
    line-height: 1;
    text-decoration: none;
}

.welcome-wordmark:focus-visible,
.welcome-primary:focus-visible {
    outline: 3px solid rgba(23, 24, 28, 0.22);
    outline-offset: 4px;
}

.welcome-kicker {
    color: var(--welcome-muted);
    font-size: var(--type-caption);
    font-weight: 600;
}

.welcome-content {
    display: grid;
    min-height: 0;
    align-content: center;
    justify-items: center;
    gap: 18px;
    padding-block: 8px 18px;
}

.welcome-orbit {
    position: relative;
    width: min(310px, 82vw);
    aspect-ratio: 1;
}

.orbit-line {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--welcome-line);
    transform: translate(-50%, -50%);
}

.orbit-line-outer { width: 88%; height: 88%; }
.orbit-line-inner { width: 54%; height: 54%; }

.orbit-center,
.orbit-node {
    position: absolute;
    display: grid;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(40, 41, 47, 0.12);
}

.orbit-center {
    top: 50%;
    left: 50%;
    width: 82px;
    height: 82px;
    color: var(--welcome-rose);
    background: rgba(255, 255, 255, 0.92);
    font-size: 2rem;
    transform: translate(-50%, -50%);
}

.orbit-node {
    width: 50px;
    height: 50px;
    font-size: 1.22rem;
}

.orbit-node-profile { top: 4%; left: 23%; color: #8f5771; background: var(--welcome-rose-soft); }
.orbit-node-calendar { top: 17%; right: 3%; color: #6e638e; background: var(--welcome-lavender-soft); }
.orbit-node-chat { right: 2%; bottom: 22%; color: #7d657f; background: #f3e9f1; }
.orbit-node-coffee { right: 27%; bottom: 0; color: #936536; background: var(--welcome-amber-soft); }
.orbit-node-event { bottom: 8%; left: 10%; color: #695c91; background: var(--welcome-lavender-soft); }
.orbit-node-follow { top: 33%; left: 0; color: #a05273; background: var(--welcome-rose-soft); }

.orbit-spark {
    position: absolute;
    display: grid;
    place-items: center;
    color: var(--welcome-amber);
}

.orbit-spark-one { top: 17%; left: 48%; font-size: 1.4rem; }
.orbit-spark-two { right: 18%; bottom: 42%; font-size: 0.75rem; }

.welcome-copy { max-width: 330px; text-align: center; }

.welcome-copy h1 {
    margin: 0;
    font-size: clamp(1.82rem, 8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.06;
    text-wrap: balance;
}

.welcome-copy h1 span { color: var(--welcome-rose); }
.welcome-copy > p:last-child {
    margin: 12px auto 0;
    color: var(--welcome-muted);
    font-size: var(--type-body-small);
    line-height: var(--line-body);
    text-wrap: pretty;
}

.welcome-actions { display: grid; gap: 10px; }
.welcome-primary {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, #2c2e33, #15161a);
    box-shadow: 0 12px 28px rgba(17, 19, 24, 0.22);
    font-size: var(--type-body);
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.welcome-primary:hover {
    color: #fff;
    box-shadow: 0 15px 32px rgba(17, 19, 24, 0.27);
    transform: translateY(-1px);
}

.welcome-actions p {
    margin: 0;
    color: var(--welcome-muted);
    font-size: var(--type-caption);
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 470px) {
    .welcome-page { padding: 0; }
    .welcome-shell {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: min(620px, 100dvh);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 350px) {
    .welcome-shell { padding-inline: 18px; }
    .welcome-orbit { width: min(270px, 82vw); }
    .orbit-node { width: 44px; height: 44px; border-width: 3px; font-size: 1.05rem; }
    .orbit-center { width: 72px; height: 72px; font-size: 1.7rem; }
    .welcome-copy h1 { font-size: 1.72rem; }
    .welcome-kicker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-primary { transition: none; }
}
